Skip to content

Commit

Permalink
clear bottom bar if queue is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-bl committed Mar 28, 2016
1 parent 1251635 commit 7271b14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ch/blinkenlights/android/vanilla/LibraryActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,9 @@ public void onMediaChange()
protected void onStateChange(int state, int toggled)
{
super.onStateChange(state, toggled);

if ((state & PlaybackService.FLAG_EMPTY_QUEUE) != 0)
mBottomBarControls.setSong(null);
}

@Override
Expand Down

0 comments on commit 7271b14

Please sign in to comment.