Fixed light statusbar mode not working correctly.
This commit is contained in:
parent
d31ad77e62
commit
78c0ea1114
1 changed files with 4 additions and 3 deletions
|
|
@ -54,12 +54,13 @@ public abstract class AbsThemeActivity extends ATHToolbarActivity {
|
||||||
if (statusBar != null) {
|
if (statusBar != null) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
statusBar.setBackgroundColor(ColorUtil.darkenColor(color));
|
statusBar.setBackgroundColor(ColorUtil.darkenColor(color));
|
||||||
ATH.setLightStatusbarAuto(this, color);
|
setLightStatusbarAuto(color);
|
||||||
} else {
|
} else {
|
||||||
statusBar.setBackgroundColor(color);
|
statusBar.setBackgroundColor(color);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (Build.VERSION.SDK_INT >= 21) {
|
||||||
ATH.setStatusbarColor(this, ColorUtil.darkenColor(color));
|
getWindow().setStatusBarColor(color);
|
||||||
|
setLightStatusbarAuto(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue