|
|
|
@ -77,7 +77,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private SwitchCompat swCrashReports;
|
|
|
|
|
private TextView tvUuid;
|
|
|
|
|
private SwitchCompat swDebug;
|
|
|
|
|
private SwitchCompat swAuthPlain;
|
|
|
|
|
private SwitchCompat swAuthSasl;
|
|
|
|
|
private Button btnReset;
|
|
|
|
|
private SwitchCompat swCleanupAttachments;
|
|
|
|
@ -96,7 +95,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"shortcuts", "fts", "english", "watchdog", "auto_optimize", "updates",
|
|
|
|
|
"experiments", "crash_reports", "debug", "auth_plain", "auth_sasl", "cleanup_attachments"
|
|
|
|
|
"experiments", "crash_reports", "debug", "auth_sasl", "cleanup_attachments"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_QUESTIONS = new String[]{
|
|
|
|
@ -133,7 +132,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swCrashReports = view.findViewById(R.id.swCrashReports);
|
|
|
|
|
tvUuid = view.findViewById(R.id.tvUuid);
|
|
|
|
|
swDebug = view.findViewById(R.id.swDebug);
|
|
|
|
|
swAuthPlain = view.findViewById(R.id.swAuthPlain);
|
|
|
|
|
swAuthSasl = view.findViewById(R.id.swAuthSasl);
|
|
|
|
|
btnReset = view.findViewById(R.id.btnReset);
|
|
|
|
|
swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments);
|
|
|
|
@ -281,14 +279,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swAuthPlain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("auth_plain", checked).apply();
|
|
|
|
|
ServiceSynchronize.reload(getContext(), -1L, false, "auth_plain=" + checked);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swAuthSasl.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -537,7 +527,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swCrashReports.setChecked(prefs.getBoolean("crash_reports", false));
|
|
|
|
|
tvUuid.setText(prefs.getString("uuid", null));
|
|
|
|
|
swDebug.setChecked(prefs.getBoolean("debug", false));
|
|
|
|
|
swAuthPlain.setChecked(prefs.getBoolean("auth_plain", true));
|
|
|
|
|
swAuthSasl.setChecked(prefs.getBoolean("auth_sasl", true));
|
|
|
|
|
swCleanupAttachments.setChecked(prefs.getBoolean("cleanup_attachments", false));
|
|
|
|
|
|
|
|
|
|