mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
e306267602
commit
41615e188b
|
@ -256,8 +256,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
|
|
||||||
prefs.registerOnSharedPreferenceChangeListener(this);
|
prefs.registerOnSharedPreferenceChangeListener(this);
|
||||||
|
|
||||||
checkAuthentication();
|
|
||||||
|
|
||||||
int colorPrimaryDark = Helper.resolveColor(this, R.attr.colorPrimaryDark);
|
int colorPrimaryDark = Helper.resolveColor(this, R.attr.colorPrimaryDark);
|
||||||
int colorActionForeground = Helper.resolveColor(this, R.attr.colorActionForeground);
|
int colorActionForeground = Helper.resolveColor(this, R.attr.colorActionForeground);
|
||||||
|
|
||||||
|
@ -278,9 +276,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
if (navbar_colorize) {
|
if (navbar_colorize) {
|
||||||
Window window = getWindow();
|
Window window = getWindow();
|
||||||
if (window != null)
|
if (window != null)
|
||||||
window.setNavigationBarColor(Helper.resolveColor(this, R.attr.colorPrimaryDark));
|
window.setNavigationBarColor(colorPrimaryDark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkAuthentication();
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue