mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-05 03:02:34 +00:00
Updated option/title
This commit is contained in:
parent
de97def0ee
commit
7b4b3171ac
3 changed files with 3 additions and 4 deletions
|
@ -107,7 +107,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
public void setContentView(@NonNull View view) {
|
public void setContentView(@NonNull View view) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
boolean hide_toolbar = prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE);
|
boolean hide_toolbar = prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE);
|
||||||
boolean edge_to_edge = prefs.getBoolean("edge_to_edge", false);
|
boolean edge_to_edge = prefs.getBoolean("edge_to_edge", !BuildConfig.PLAY_STORE_RELEASE);
|
||||||
|
|
||||||
int colorPrimary = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimary);
|
int colorPrimary = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimary);
|
||||||
double lum = ColorUtils.calculateLuminance(colorPrimary);
|
double lum = ColorUtils.calculateLuminance(colorPrimary);
|
||||||
|
|
|
@ -647,7 +647,6 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
swEdgeToEdge.setVisibility(debug || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
|
||||||
swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
swEdgeToEdge.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
|
@ -1620,7 +1619,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||||
sbColumnWidth.setProgress(column_width);
|
sbColumnWidth.setProgress(column_width);
|
||||||
|
|
||||||
swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE));
|
swHideToolbar.setChecked(prefs.getBoolean("hide_toolbar", !BuildConfig.PLAY_STORE_RELEASE));
|
||||||
swEdgeToEdge.setChecked(prefs.getBoolean("edge_to_edge", false));
|
swEdgeToEdge.setChecked(prefs.getBoolean("edge_to_edge", !BuildConfig.PLAY_STORE_RELEASE));
|
||||||
swNavOptions.setChecked(prefs.getBoolean("nav_options", true));
|
swNavOptions.setChecked(prefs.getBoolean("nav_options", true));
|
||||||
swNavCategories.setChecked(prefs.getBoolean("nav_categories", false));
|
swNavCategories.setChecked(prefs.getBoolean("nav_categories", false));
|
||||||
swNavLastSync.setChecked(prefs.getBoolean("nav_last_sync", true));
|
swNavLastSync.setChecked(prefs.getBoolean("nav_last_sync", true));
|
||||||
|
|
|
@ -583,7 +583,7 @@
|
||||||
<string name="title_advanced_close_pane">Collapse row or column when closing a conversation</string>
|
<string name="title_advanced_close_pane">Collapse row or column when closing a conversation</string>
|
||||||
<string name="title_advanced_column_width">Message column width / row height: %1$s %%</string>
|
<string name="title_advanced_column_width">Message column width / row height: %1$s %%</string>
|
||||||
<string name="title_advanced_hide_toolbar">Hide top toolbar when scrolling messages</string>
|
<string name="title_advanced_hide_toolbar">Hide top toolbar when scrolling messages</string>
|
||||||
<string name="title_advanced_edge_to_edge" translatable="false">Edge-to-edge (experimental)</string>
|
<string name="title_advanced_edge_to_edge">Use app background color for Android navigation bar</string>
|
||||||
<string name="title_advanced_nav_options">Show navigation menu options</string>
|
<string name="title_advanced_nav_options">Show navigation menu options</string>
|
||||||
<string name="title_advanced_nav_categories">Show account categories in the navigation menu</string>
|
<string name="title_advanced_nav_categories">Show account categories in the navigation menu</string>
|
||||||
<string name="title_advanced_nav_pin">Pin navigation menu</string>
|
<string name="title_advanced_nav_pin">Pin navigation menu</string>
|
||||||
|
|
Loading…
Add table
Reference in a new issue