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:
Karim Abou Zeid 2015-12-27 17:32:26 +01:00
commit 748f4b3e98
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
@Override
public void onPaletteColorChanged() {
if (getPanelState() == SlidingUpPanelLayout.PanelState.COLLAPSED) {
if (getPanelState() == SlidingUpPanelLayout.PanelState.EXPANDED) {
int playerFragmentColor = playerFragment.getPaletteColor();
super.notifyTaskColorChange(playerFragmentColor);
if (shouldColorNavigationBar()) {

View file

@ -129,7 +129,7 @@ public abstract class AbsThemeActivity extends AppCompatActivity implements KabV
protected void setNavigationBarColor(@ColorInt int color) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
getWindow().setNavigationBarColor(ColorUtil.shiftColorDown(color));
getWindow().setNavigationBarColor(color);
}
/**