Disable the media library menu item when there is no media

This commit is contained in:
Christopher Eby committed 2010-03-11 01:29:09 -06:00
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;
}
+1 -1
View File
@@ -821,4 +821,4 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
}
}
}
}
}