Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Set Remote number if available in CustomSlideNotify

Arka Prava Basu422602455c49
diff --git a/src/main/java/org/havenapp/main/ui/CustomSlideNotify.java b/src/main/java/org/havenapp/main/ui/CustomSlideNotify.java
index c292865..2fd2c7a 100644
--- a/src/main/java/org/havenapp/main/ui/CustomSlideNotify.java
+++ b/src/main/java/org/havenapp/main/ui/CustomSlideNotify.java
@@ -7,12 +7,14 @@ package org.havenapp.main.ui;
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;
@@ -62,6 +64,9 @@ public class CustomSlideNotify extends Fragment {
@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