mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 15:10:47 +01:00
Revised account/identity setup
This commit is contained in:
@@ -55,7 +55,6 @@ public class FragmentOptions extends FragmentEx implements SharedPreferences.OnS
|
||||
|
||||
private SwitchCompat swMetered;
|
||||
private Spinner spDownload;
|
||||
private SwitchCompat swInsecure;
|
||||
|
||||
private SwitchCompat swUnified;
|
||||
private SwitchCompat swThreading;
|
||||
@@ -94,7 +93,6 @@ public class FragmentOptions extends FragmentEx implements SharedPreferences.OnS
|
||||
|
||||
swMetered = view.findViewById(R.id.swMetered);
|
||||
spDownload = view.findViewById(R.id.spDownload);
|
||||
swInsecure = view.findViewById(R.id.swInsecure);
|
||||
|
||||
swUnified = view.findViewById(R.id.swUnified);
|
||||
swThreading = view.findViewById(R.id.swThreading);
|
||||
@@ -161,14 +159,6 @@ public class FragmentOptions extends FragmentEx implements SharedPreferences.OnS
|
||||
}
|
||||
});
|
||||
|
||||
swInsecure.setChecked(prefs.getBoolean("insecure", false));
|
||||
swInsecure.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("insecure", checked).apply();
|
||||
}
|
||||
});
|
||||
|
||||
swUnified.setChecked(prefs.getBoolean("unified", true));
|
||||
swUnified.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user