mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Disable edge-to-edge by default
This commit is contained in:
parent
3a808d006d
commit
3cb2441ce7
2 changed files with 2 additions and 2 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", !BuildConfig.PLAY_STORE_RELEASE);
|
boolean edge_to_edge = prefs.getBoolean("edge_to_edge", false);
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
@ -1619,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", !BuildConfig.PLAY_STORE_RELEASE));
|
swEdgeToEdge.setChecked(prefs.getBoolean("edge_to_edge", false));
|
||||||
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));
|
||||||
|
|
Loading…
Reference in a new issue