|
|
|
@ -221,6 +221,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private SwitchCompat swJsonLd;
|
|
|
|
|
private SwitchCompat swDupMsgId;
|
|
|
|
|
private SwitchCompat swThreadByRef;
|
|
|
|
|
private SwitchCompat swSaveUserFlags;
|
|
|
|
|
private SwitchCompat swMdn;
|
|
|
|
|
private SwitchCompat swAppChooser;
|
|
|
|
|
private SwitchCompat swAppChooserShare;
|
|
|
|
@ -287,7 +288,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"exact_alarms",
|
|
|
|
|
"native_dkim", "native_arc", "native_arc_whitelist",
|
|
|
|
|
"webp", "animate_images",
|
|
|
|
|
"easy_correct", "infra", "tld_flags", "json_ld", "dup_msgids", "thread_byref", "mdn",
|
|
|
|
|
"easy_correct", "infra", "tld_flags", "json_ld", "dup_msgids", "thread_byref", "save_user_flags", "mdn",
|
|
|
|
|
"app_chooser", "app_chooser_share", "adjacent_links", "adjacent_documents", "adjacent_portrait", "adjacent_landscape",
|
|
|
|
|
"delete_confirmation", "global_keywords", "test_iab"
|
|
|
|
|
));
|
|
|
|
@ -460,6 +461,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swJsonLd = view.findViewById(R.id.swJsonLd);
|
|
|
|
|
swDupMsgId = view.findViewById(R.id.swDupMsgId);
|
|
|
|
|
swThreadByRef = view.findViewById(R.id.swThreadByRef);
|
|
|
|
|
swSaveUserFlags = view.findViewById(R.id.swSaveUserFlags);
|
|
|
|
|
swMdn = view.findViewById(R.id.swMdn);
|
|
|
|
|
swAppChooser = view.findViewById(R.id.swAppChooser);
|
|
|
|
|
swAppChooserShare = view.findViewById(R.id.swAppChooserShare);
|
|
|
|
@ -1570,6 +1572,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swSaveUserFlags.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("save_user_flags", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swMdn.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -2365,6 +2374,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swJsonLd.setChecked(prefs.getBoolean("json_ld", false));
|
|
|
|
|
swDupMsgId.setChecked(prefs.getBoolean("dup_msgids", false));
|
|
|
|
|
swThreadByRef.setChecked(prefs.getBoolean("thread_byref", true));
|
|
|
|
|
swSaveUserFlags.setChecked(prefs.getBoolean("save_user_flags", false));
|
|
|
|
|
swMdn.setChecked(prefs.getBoolean("mdn", swExperiments.isChecked()));
|
|
|
|
|
swAppChooser.setChecked(prefs.getBoolean("app_chooser", false));
|
|
|
|
|
swAppChooserShare.setChecked(prefs.getBoolean("app_chooser_share", false));
|
|
|
|
|