- // Don't show the menu items if we got launched by path/filedescriptor, since
- // those tend to not be in the media database.
- if (MusicUtils.getCurrentAudioId() >= 0) {
- if (!mOneShot) {
- menu.add(0, GOTO_START, 0, R.string.goto_start).setIcon(R.drawable.ic_menu_music_library);
- menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu()
- }
+ // Don't show the menu items if we got launched by path/filedescriptor, or
+ // if we're in one shot mode. In most cases, these menu items are not
+ // useful in those modes, so for consistency we never show them in these
+ // modes, instead of tailoring them to the specific file being played.
+ if (MusicUtils.getCurrentAudioId() >= 0 && !mOneShot) {
+ menu.add(0, GOTO_START, 0, R.string.goto_start).setIcon(R.drawable.ic_menu_music_library);
+ menu.add(0, PARTY_SHUFFLE, 0, R.string.party_shuffle); // icon will be set in onPrepareOptionsMenu()