pull/156/head
M66B 6 years ago
parent fdcb6c241e
commit a3588ac89c

@ -83,6 +83,8 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
swPrefixOnce = view.findViewById(R.id.swPrefixOnce);
swAutoSend = view.findViewById(R.id.swAutoSend);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -187,7 +189,6 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

@ -71,6 +71,8 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
spDownload = view.findViewById(R.id.spDownload);
swRoaming = view.findViewById(R.id.swRoaming);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -104,7 +106,6 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

@ -84,6 +84,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swImages = view.findViewById(R.id.swImages);
swActionbar = view.findViewById(R.id.swActionbar);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -202,7 +204,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

@ -84,6 +84,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
grpSearchLocal = view.findViewById(R.id.grpSearchLocal);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -166,7 +168,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
setLastCleanup(prefs.getLong("last_cleanup", -1));
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

@ -81,6 +81,8 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
grpNotification = view.findViewById(R.id.grpNotification);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -148,7 +150,6 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

@ -79,6 +79,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
swUnseen = view.findViewById(R.id.swUnseen);
swFlagged = view.findViewById(R.id.swFlagged);
setOptions();
// Wire controls
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
@ -173,7 +175,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
}
});
setOptions();
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
return view;

Loading…
Cancel
Save