Browse Source

Do not save register_signal EditTextPreference value in save()

- without actually completing the registration process saving the local
  phone number would not make sense

Signed-off-by: Arka Prava Basu <arkaprava94@gmail.com>
Arka Prava Basu 6 months ago
parent
commit
10079ff55c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/main/java/org/havenapp/main/SettingsFragment.java

+ 0 - 2
src/main/java/org/havenapp/main/SettingsFragment.java

@@ -289,8 +289,6 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
289 289
 
290 290
         preferences.setActivateVideoMonitoring(videoMonitoringActive);
291 291
 
292
-        preferences.setSignalUsername(((EditTextPreference) findPreference(PreferenceManager.REGISTER_SIGNAL)).getText());
293
-
294 292
         boolean remoteNotificationActive =
295 293
                 ((SwitchPreference) findPreference(PreferenceManager.REMOTE_NOTIFICATION_ACTIVE)).isChecked();
296 294
         preferences.setRemoteNotificationActive(remoteNotificationActive);