|
|
|
@ -84,7 +84,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
private SwitchCompat swAddresses;
|
|
|
|
|
private SwitchCompat swMonospaced;
|
|
|
|
|
private SwitchCompat swHtml;
|
|
|
|
|
private SwitchCompat swTracking;
|
|
|
|
|
private SwitchCompat swImages;
|
|
|
|
|
private SwitchCompat swActionbar;
|
|
|
|
|
|
|
|
|
@ -106,6 +105,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
private SwitchCompat swLight;
|
|
|
|
|
private Button btnSound;
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swParanoid;
|
|
|
|
|
private SwitchCompat swEnglish;
|
|
|
|
|
private SwitchCompat swUpdates;
|
|
|
|
|
private SwitchCompat swDebug;
|
|
|
|
@ -124,11 +124,11 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
"enabled", "schedule_start", "schedule_end",
|
|
|
|
|
"metered", "download",
|
|
|
|
|
"startup", "date", "threading", "avatars", "identicons", "name_email", "subject_italic", "flags", "preview",
|
|
|
|
|
"addresses", "monospaced", "autohtml", "remove_tracking", "autoimages", "actionbar",
|
|
|
|
|
"addresses", "monospaced", "autohtml", "autoimages", "actionbar",
|
|
|
|
|
"pull", "swipenav", "autoexpand", "autoclose", "autonext", "collapse", "autoread", "automove",
|
|
|
|
|
"autoresize", "sender", "autosend",
|
|
|
|
|
"notify_preview", "search_local", "light", "sound",
|
|
|
|
|
"updates", "debug",
|
|
|
|
|
"paranoid", "updates", "debug",
|
|
|
|
|
"first", "why", "last_update_check", "app_support", "message_swipe", "message_select", "folder_actions", "folder_sync",
|
|
|
|
|
"edit_ref_confirmed", "show_html_confirmed", "show_images_confirmed", "print_html_confirmed", "show_organization", "style_toolbar"
|
|
|
|
|
};
|
|
|
|
@ -163,7 +163,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
swAddresses = view.findViewById(R.id.swAddresses);
|
|
|
|
|
swMonospaced = view.findViewById(R.id.swMonospaced);
|
|
|
|
|
swHtml = view.findViewById(R.id.swHtml);
|
|
|
|
|
swTracking = view.findViewById(R.id.swTracking);
|
|
|
|
|
swImages = view.findViewById(R.id.swImages);
|
|
|
|
|
swActionbar = view.findViewById(R.id.swActionbar);
|
|
|
|
|
|
|
|
|
@ -185,6 +184,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
swLight = view.findViewById(R.id.swLight);
|
|
|
|
|
btnSound = view.findViewById(R.id.btnSound);
|
|
|
|
|
|
|
|
|
|
swParanoid = view.findViewById(R.id.swParanoid);
|
|
|
|
|
swEnglish = view.findViewById(R.id.swEnglish);
|
|
|
|
|
swUpdates = view.findViewById(R.id.swUpdates);
|
|
|
|
|
swDebug = view.findViewById(R.id.swDebug);
|
|
|
|
@ -251,6 +251,13 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swParanoid.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("paranoid", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swEnglish.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -388,13 +395,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swTracking.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("remove_tracking", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swImages.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -635,7 +635,6 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
swAddresses.setChecked(prefs.getBoolean("addresses", true));
|
|
|
|
|
swMonospaced.setChecked(prefs.getBoolean("monospaced", false));
|
|
|
|
|
swHtml.setChecked(prefs.getBoolean("autohtml", false));
|
|
|
|
|
swTracking.setChecked(prefs.getBoolean("remove_tracking", true));
|
|
|
|
|
swImages.setChecked(prefs.getBoolean("autoimages", false));
|
|
|
|
|
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
|
|
|
|
|
|
|
|
|
@ -657,6 +656,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
|
|
|
|
swNotifyPreview.setEnabled(Helper.isPro(getContext()));
|
|
|
|
|
swSearchLocal.setChecked(prefs.getBoolean("search_local", false));
|
|
|
|
|
swLight.setChecked(prefs.getBoolean("light", false));
|
|
|
|
|
swParanoid.setChecked(prefs.getBoolean("paranoid", true));
|
|
|
|
|
swEnglish.setChecked(prefs.getBoolean("english", false));
|
|
|
|
|
swUpdates.setChecked(prefs.getBoolean("updates", true));
|
|
|
|
|
swUpdates.setVisibility(Helper.isPlayStoreInstall(getContext()) ? View.GONE : View.VISIBLE);
|
|
|
|
|