remove some unused strings
This commit is contained in:
parent
a26ddacc8c
commit
40a870c7e4
63 changed files with 59 additions and 551 deletions
|
|
@ -233,7 +233,7 @@ public class AlbumDetailActivity extends AbsSlidingMusicPanelActivity implements
|
|||
case R.id.action_play_next:
|
||||
MusicPlayerRemote.playNext(songs);
|
||||
return true;
|
||||
case R.id.action_add_to_current_playing:
|
||||
case R.id.action_add_to_queue:
|
||||
MusicPlayerRemote.enqueue(songs);
|
||||
return true;
|
||||
case R.id.action_add_to_playlist:
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
|
|||
case R.id.action_play_next:
|
||||
MusicPlayerRemote.playNext(songs);
|
||||
return true;
|
||||
case R.id.action_add_to_current_playing:
|
||||
case R.id.action_add_to_queue:
|
||||
MusicPlayerRemote.enqueue(songs);
|
||||
return true;
|
||||
case R.id.action_add_to_playlist:
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ public class SearchActivity extends AbsMusicServiceActivity implements SearchVie
|
|||
|
||||
final MenuItem searchItem = menu.findItem(R.id.search);
|
||||
searchView = (SearchView) searchItem.getActionView();
|
||||
searchView.setQueryHint(getString(R.string.search_hint));
|
||||
searchView.setQueryHint(getString(R.string.action_search));
|
||||
searchView.setMaxWidth(Integer.MAX_VALUE);
|
||||
|
||||
searchItem.expandActionView();
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ public class LibraryFragment extends AbsMainActivityFragment implements CabHolde
|
|||
if (pager == null) return;
|
||||
inflater.inflate(R.menu.menu_main, menu);
|
||||
if (isPlaylistPage()) {
|
||||
menu.add(0, R.id.action_new_playlist, 0, R.string.new_playlist_title);
|
||||
menu.add(0, R.id.action_new_playlist, 0, R.string.action_new_playlist);
|
||||
}
|
||||
Fragment currentFragment = getCurrentFragment();
|
||||
if (currentFragment instanceof AbsLibraryPagerRecyclerViewCustomGridSizeFragment && currentFragment.isAdded()) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package com.kabouzeid.gramophone.ui.fragments.player;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import android.view.MenuItem;
|
||||
|
|
@ -57,10 +57,10 @@ public abstract class AbsPlayerFragment extends AbsMusicServiceFragment implemen
|
|||
case R.id.action_add_to_playlist:
|
||||
AddToPlaylistDialog.create(song).show(getFragmentManager(), "ADD_PLAYLIST");
|
||||
return true;
|
||||
case R.id.action_clear_playing_queue:
|
||||
case R.id.action_clear_queue:
|
||||
MusicPlayerRemote.clearQueue();
|
||||
return true;
|
||||
case R.id.action_save_playing_queue:
|
||||
case R.id.action_save_queue:
|
||||
CreatePlaylistDialog.create(MusicPlayerRemote.getPlayingQueue()).show(getActivity().getSupportFragmentManager(), "ADD_TO_PLAYLIST");
|
||||
return true;
|
||||
case R.id.action_details:
|
||||
|
|
|
|||
|
|
@ -468,7 +468,7 @@ public class CardPlayerFragment extends AbsPlayerFragment implements PlayerAlbum
|
|||
@Override
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.action_remove_from_playing_queue:
|
||||
case R.id.action_remove_from_queue:
|
||||
MusicPlayerRemote.removeFromQueue(MusicPlayerRemote.getPosition());
|
||||
return true;
|
||||
case R.id.action_share:
|
||||
|
|
|
|||
|
|
@ -445,7 +445,7 @@ public class FlatPlayerFragment extends AbsPlayerFragment implements PlayerAlbum
|
|||
@Override
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.action_remove_from_playing_queue:
|
||||
case R.id.action_remove_from_queue:
|
||||
MusicPlayerRemote.removeFromQueue(MusicPlayerRemote.getPosition());
|
||||
return true;
|
||||
case R.id.action_share:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue