Skip to content

Commit

Permalink
Set Remote number if available in CustomSlideNotify
Browse files Browse the repository at this point in the history
Signed-off-by: Arka Prava Basu <[email protected]>
  • Loading branch information
archie94 committed Feb 14, 2019
1 parent 5e81143 commit 4226024
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/havenapp/main/ui/CustomSlideNotify.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

import android.content.pm.PackageManager;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import org.havenapp.main.PreferenceManager;
import org.havenapp.main.R;

import androidx.annotation.NonNull;
Expand Down Expand Up @@ -62,6 +64,9 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
@Override
public void onClick(View v) { }
});
PreferenceManager pm = new PreferenceManager(getActivity());
if (!TextUtils.isEmpty(pm.getRemotePhoneNumber()))
mEditNumber.setText(pm.getRemotePhoneNumber());

// todo describe why we are asking this maybe

Expand Down

0 comments on commit 4226024

Please sign in to comment.