Small improvement

This commit is contained in:
M66B 2021-04-26 15:56:52 +02:00
parent e306267602
commit 41615e188b
1 changed files with 3 additions and 3 deletions

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);
}