|
|
@ -91,6 +91,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
private SwitchCompat swActionbar;
|
|
|
|
private SwitchCompat swActionbar;
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swPull;
|
|
|
|
private SwitchCompat swPull;
|
|
|
|
|
|
|
|
private SwitchCompat swAutoScroll;
|
|
|
|
private SwitchCompat swSwipeNav;
|
|
|
|
private SwitchCompat swSwipeNav;
|
|
|
|
private SwitchCompat swAutoExpand;
|
|
|
|
private SwitchCompat swAutoExpand;
|
|
|
|
private SwitchCompat swAutoClose;
|
|
|
|
private SwitchCompat swAutoClose;
|
|
|
@ -125,7 +126,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
static String[] OPTIONS_RESTART = new String[]{
|
|
|
|
static String[] OPTIONS_RESTART = new String[]{
|
|
|
|
"startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic", "flags", "preview",
|
|
|
|
"startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic", "flags", "preview",
|
|
|
|
"addresses", "monospaced", "autohtml", "autoimages", "actionbar",
|
|
|
|
"addresses", "monospaced", "autohtml", "autoimages", "actionbar",
|
|
|
|
"pull", "swipenav", "autoexpand", "autoclose", "autonext",
|
|
|
|
"pull", "autoscroll", "swipenav", "autoexpand", "autoclose", "autonext",
|
|
|
|
"subscriptions",
|
|
|
|
"subscriptions",
|
|
|
|
"authentication", "debug"
|
|
|
|
"authentication", "debug"
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -135,7 +136,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
"metered", "download", "roaming",
|
|
|
|
"metered", "download", "roaming",
|
|
|
|
"startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic", "flags", "preview",
|
|
|
|
"startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic", "flags", "preview",
|
|
|
|
"addresses", "monospaced", "autohtml", "autoimages", "actionbar",
|
|
|
|
"addresses", "monospaced", "autohtml", "autoimages", "actionbar",
|
|
|
|
"pull", "swipenav", "autoexpand", "autoclose", "autonext", "collapse", "autoread", "automove",
|
|
|
|
"pull", "autoscroll", "swipenav", "autoexpand", "autoclose", "autonext", "collapse", "autoread", "automove",
|
|
|
|
"autoresize", "resize", "prefix_once", "autosend",
|
|
|
|
"autoresize", "resize", "prefix_once", "autosend",
|
|
|
|
"badge", "subscriptions", "notify_preview", "search_local", "light", "sound",
|
|
|
|
"badge", "subscriptions", "notify_preview", "search_local", "light", "sound",
|
|
|
|
"authentication", "paranoid", "english", "updates", "debug",
|
|
|
|
"authentication", "paranoid", "english", "updates", "debug",
|
|
|
@ -181,6 +182,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
swActionbar = view.findViewById(R.id.swActionbar);
|
|
|
|
swActionbar = view.findViewById(R.id.swActionbar);
|
|
|
|
|
|
|
|
|
|
|
|
swPull = view.findViewById(R.id.swPull);
|
|
|
|
swPull = view.findViewById(R.id.swPull);
|
|
|
|
|
|
|
|
swAutoScroll = view.findViewById(R.id.swAutoScroll);
|
|
|
|
swSwipeNav = view.findViewById(R.id.swSwipeNav);
|
|
|
|
swSwipeNav = view.findViewById(R.id.swSwipeNav);
|
|
|
|
swAutoExpand = view.findViewById(R.id.swAutoExpand);
|
|
|
|
swAutoExpand = view.findViewById(R.id.swAutoExpand);
|
|
|
|
swAutoClose = view.findViewById(R.id.swAutoClose);
|
|
|
|
swAutoClose = view.findViewById(R.id.swAutoClose);
|
|
|
@ -443,6 +445,13 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swAutoScroll.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("autoscroll", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swSwipeNav.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swSwipeNav.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -753,6 +762,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
|
|
|
|
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
|
|
|
|
|
|
|
|
|
|
|
|
swPull.setChecked(prefs.getBoolean("pull", true));
|
|
|
|
swPull.setChecked(prefs.getBoolean("pull", true));
|
|
|
|
|
|
|
|
swAutoScroll.setChecked(prefs.getBoolean("autoscroll", false));
|
|
|
|
swSwipeNav.setChecked(prefs.getBoolean("swipenav", true));
|
|
|
|
swSwipeNav.setChecked(prefs.getBoolean("swipenav", true));
|
|
|
|
swAutoExpand.setChecked(prefs.getBoolean("autoexpand", true));
|
|
|
|
swAutoExpand.setChecked(prefs.getBoolean("autoexpand", true));
|
|
|
|
swAutoClose.setChecked(prefs.getBoolean("autoclose", true));
|
|
|
|
swAutoClose.setChecked(prefs.getBoolean("autoclose", true));
|
|
|
|