Fixed the colored navigation bar issue. Also now using primary color instead of shifted down primary color for the navigation bar.
This commit is contained in:
parent
a87942823e
commit
748f4b3e98
2 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPaletteColorChanged() {
|
public void onPaletteColorChanged() {
|
||||||
if (getPanelState() == SlidingUpPanelLayout.PanelState.COLLAPSED) {
|
if (getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) {
|
||||||
int playerFragmentColor = playerFragment.getPaletteColor();
|
int playerFragmentColor = playerFragment.getPaletteColor();
|
||||||
super.notifyTaskColorChange(playerFragmentColor);
|
super.notifyTaskColorChange(playerFragmentColor);
|
||||||
if (shouldColorNavigationBar()) {
|
if (shouldColorNavigationBar()) {
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ public abstract class AbsThemeActivity extends AppCompatActivity implements KabV
|
||||||
|
|
||||||
protected void setNavigationBarColor(@ColorInt int color) {
|
protected void setNavigationBarColor(@ColorInt int color) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
||||||
getWindow().setNavigationBarColor(ColorUtil.shiftColorDown(color));
|
getWindow().setNavigationBarColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue