1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Small improvement

This commit is contained in:
M66B 2021-04-26 15:56:52 +02:00
parent e306267602
commit 41615e188b

View file

@ -256,8 +256,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
prefs.registerOnSharedPreferenceChangeListener(this);
checkAuthentication();
int colorPrimaryDark = Helper.resolveColor(this, R.attr.colorPrimaryDark);
int colorActionForeground = Helper.resolveColor(this, R.attr.colorActionForeground);
@ -278,9 +276,11 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
if (navbar_colorize) {
Window window = getWindow();
if (window != null)
window.setNavigationBarColor(Helper.resolveColor(this, R.attr.colorPrimaryDark));
window.setNavigationBarColor(colorPrimaryDark);
}
checkAuthentication();
super.onCreate(savedInstanceState);
}