mirror of https://github.com/M66B/FairEmail.git
Revert "Added option to enable unified system folders"
This reverts commit ded0259acc
.
This commit is contained in:
parent
fa6e5e6d3f
commit
12c47070fd
|
@ -358,8 +358,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
boolean unified_system = prefs.getBoolean("unified_system", false);
|
|
||||||
if (unified_system)
|
|
||||||
db.folder().liveUnifiedTypes().observe(this, new Observer<List<String>>() {
|
db.folder().liveUnifiedTypes().observe(this, new Observer<List<String>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onChanged(List<String> types) {
|
public void onChanged(List<String> types) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class FragmentOptions extends FragmentBase {
|
||||||
|
|
||||||
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", "attachments_alt", "contrast", "monospaced", "autohtml", "autoimages", "actionbar", "unified_system",
|
"addresses", "attachments_alt", "contrast", "monospaced", "autohtml", "autoimages", "actionbar",
|
||||||
"autoscroll", "swipenav", "autoexpand", "autoclose", "autonext",
|
"autoscroll", "swipenav", "autoexpand", "autoclose", "autonext",
|
||||||
"subscriptions", "debug",
|
"subscriptions", "debug",
|
||||||
"biometrics"
|
"biometrics"
|
||||||
|
|
|
@ -63,12 +63,11 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
private SwitchCompat swCollapseQuotes;
|
private SwitchCompat swCollapseQuotes;
|
||||||
private SwitchCompat swRemoteContent;
|
private SwitchCompat swRemoteContent;
|
||||||
private SwitchCompat swActionbar;
|
private SwitchCompat swActionbar;
|
||||||
private SwitchCompat swUnifiedSystem;
|
|
||||||
|
|
||||||
private final static String[] RESET_OPTIONS = new String[]{
|
private final static String[] RESET_OPTIONS = new String[]{
|
||||||
"theme", "startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic",
|
"theme", "startup", "date", "threading", "avatars", "identicons", "circular", "name_email", "subject_italic",
|
||||||
"flags", "preview", "addresses", "attachments_alt",
|
"flags", "preview", "addresses", "attachments_alt",
|
||||||
"contrast", "monospaced", "inline_images", "autoimages", "collapse_quotes", "autocontent", "actionbar", "unified_system"
|
"contrast", "monospaced", "inline_images", "autoimages", "collapse_quotes", "autocontent", "actionbar",
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -101,7 +100,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
swCollapseQuotes = view.findViewById(R.id.swCollapseQuotes);
|
swCollapseQuotes = view.findViewById(R.id.swCollapseQuotes);
|
||||||
swRemoteContent = view.findViewById(R.id.swRemoteContent);
|
swRemoteContent = view.findViewById(R.id.swRemoteContent);
|
||||||
swActionbar = view.findViewById(R.id.swActionbar);
|
swActionbar = view.findViewById(R.id.swActionbar);
|
||||||
swUnifiedSystem = view.findViewById(R.id.swUnifiedSystem);
|
|
||||||
|
|
||||||
setOptions();
|
setOptions();
|
||||||
|
|
||||||
|
@ -258,13 +256,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
swUnifiedSystem.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
||||||
@Override
|
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
||||||
prefs.edit().putBoolean("unified_system", checked).apply();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
@ -338,7 +329,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
swCollapseQuotes.setChecked(prefs.getBoolean("collapse_quotes", false));
|
swCollapseQuotes.setChecked(prefs.getBoolean("collapse_quotes", false));
|
||||||
swRemoteContent.setChecked(prefs.getBoolean("autocontent", false));
|
swRemoteContent.setChecked(prefs.getBoolean("autocontent", false));
|
||||||
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
|
swActionbar.setChecked(prefs.getBoolean("actionbar", true));
|
||||||
swUnifiedSystem.setChecked(prefs.getBoolean("unified_system", false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class FragmentDialogTheme extends DialogFragmentEx {
|
public static class FragmentDialogTheme extends DialogFragmentEx {
|
||||||
|
|
|
@ -339,18 +339,6 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvRemoteContentHint"
|
app:layout_constraintTop_toBottomOf="@id/tvRemoteContentHint"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
|
||||||
android:id="@+id/swUnifiedSystem"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:checked="false"
|
|
||||||
android:text="@string/title_advanced_unified_system"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/swActionbar"
|
|
||||||
app:switchPadding="12dp" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -224,7 +224,6 @@
|
||||||
<string name="title_advanced_collapse_quotes">Collapse quoted text</string>
|
<string name="title_advanced_collapse_quotes">Collapse quoted text</string>
|
||||||
<string name="title_advanced_remote_content">Automatically show remote content when viewing original messages</string>
|
<string name="title_advanced_remote_content">Automatically show remote content when viewing original messages</string>
|
||||||
<string name="title_advanced_actionbar">Conversation action bar</string>
|
<string name="title_advanced_actionbar">Conversation action bar</string>
|
||||||
<string name="title_advanced_unified_system">Show unified folders in navigation menu</string>
|
|
||||||
|
|
||||||
<string name="title_advanced_pull_refresh">Pull down to refresh</string>
|
<string name="title_advanced_pull_refresh">Pull down to refresh</string>
|
||||||
<string name="title_advanced_autoscroll">Scroll to top on receiving new messages</string>
|
<string name="title_advanced_autoscroll">Scroll to top on receiving new messages</string>
|
||||||
|
|
Loading…
Reference in New Issue