Revert "Skip restart on addresses option"

This reverts commit bc746223e1.
pull/147/head
M66B 6 years ago
parent ae38391652
commit 300295c1e1

@ -41,7 +41,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
private boolean contacts;
private static String[] SETTINGS_RESTART = new String[]{
"unified", "threading", "avatars", "identicons", "preview",
"unified", "threading", "avatars", "identicons", "preview", "addresses",
"pull", "actionbar", "autoclose", "autonext", "confirm", "debug"
};

@ -111,6 +111,7 @@ public class FragmentMessages extends FragmentBase {
private boolean actionbar;
private boolean autoclose;
private boolean autonext;
private boolean addresses;
private long primary = -1;
private boolean outbox = false;
@ -171,6 +172,7 @@ public class FragmentMessages extends FragmentBase {
actionbar = prefs.getBoolean("actionbar", true);
autoclose = prefs.getBoolean("autoclose", true);
autonext = prefs.getBoolean("autonext", false);
addresses = prefs.getBoolean("addresses", true);
}
@Override
@ -334,7 +336,7 @@ public class FragmentMessages extends FragmentBase {
if (values.containsKey(name))
return values.get(name).contains(id);
else if ("addresses".equals(name))
return !prefs.getBoolean("addresses", true);
return !addresses;
return false;
}

Loading…
Cancel
Save