Fixed the colored navigation bar issue.
This commit is contained in:
parent
f27dbdab3d
commit
888a612437
1 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package com.kabouzeid.gramophone.ui.activities.base;
|
package com.kabouzeid.gramophone.ui.activities.base;
|
||||||
|
|
||||||
|
import android.graphics.Color;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.annotation.ColorInt;
|
import android.support.annotation.ColorInt;
|
||||||
|
|
@ -77,7 +78,11 @@ public abstract class AbsThemeActivity extends ATHToolbarActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNavigationbarColor(int color) {
|
public void setNavigationbarColor(int color) {
|
||||||
ATH.setNavigationbarColor(this, color);
|
if (ThemeStore.coloredNavigationBar(this)) {
|
||||||
|
ATH.setNavigationbarColor(this, color);
|
||||||
|
} else {
|
||||||
|
ATH.setNavigationbarColor(this, Color.BLACK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNavigationbarColorAuto() {
|
public void setNavigationbarColorAuto() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue