Disable the media library menu item when there is no media
This commit is contained in:
1 parent
7c087cc6af
commit
6bf23b0237
2 files changed
+2
-1
No files matched your search
@@ -286,6 +286,7 @@ public class NowPlayingActivity extends Activity implements ServiceConnection, V
|
||||
public boolean onPrepareOptionsMenu(Menu menu)
|
||||
{
|
||||
menu.findItem(MENU_KILL).setEnabled(mService != null);
|
||||
menu.findItem(MENU_LIBRARY).setEnabled(mState != PlaybackService.STATE_NO_MEDIA);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -821,4 +821,4 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user