Change app metadata to match Jamfish fork, miscellaneous changes to accommodate F-droid builds.
This commit is contained in:
parent
2bcaffa8c4
commit
a85bfbbb4c
31 changed files with 32 additions and 141 deletions
|
|
@ -24,31 +24,30 @@ public class SongMenuHelper {
|
|||
public static final int MENU_RES = R.menu.menu_item_song;
|
||||
|
||||
public static boolean handleMenuClick(@NonNull FragmentActivity activity, @NonNull Song song, int menuItemId) {
|
||||
switch (menuItemId) {
|
||||
case R.id.action_share:
|
||||
SongShareDialog.create(song).show(activity.getSupportFragmentManager(), SongShareDialog.TAG);
|
||||
return true;
|
||||
case R.id.action_add_to_playlist:
|
||||
AddToPlaylistDialog.create(song).show(activity.getSupportFragmentManager(), "ADD_PLAYLIST");
|
||||
return true;
|
||||
case R.id.action_play_next:
|
||||
MusicPlayerRemote.playNext(song);
|
||||
return true;
|
||||
case R.id.action_add_to_queue:
|
||||
MusicPlayerRemote.enqueue(song);
|
||||
return true;
|
||||
case R.id.action_details:
|
||||
SongDetailDialog.create(song).show(activity.getSupportFragmentManager(), SongDetailDialog.TAG);
|
||||
return true;
|
||||
case R.id.action_download:
|
||||
NavigationUtil.startDownload(activity, Collections.singletonList(song));
|
||||
return true;
|
||||
case R.id.action_go_to_album:
|
||||
NavigationUtil.startAlbum(activity, new Album(song), null);
|
||||
return true;
|
||||
case R.id.action_go_to_artist:
|
||||
NavigationUtil.startArtist(activity, new Artist(song), null);
|
||||
return true;
|
||||
if (menuItemId == R.id.action_share) {
|
||||
SongShareDialog.create(song).show(activity.getSupportFragmentManager(), SongShareDialog.TAG);
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_add_to_playlist) {
|
||||
AddToPlaylistDialog.create(song).show(activity.getSupportFragmentManager(), "ADD_PLAYLIST");
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_play_next) {
|
||||
MusicPlayerRemote.playNext(song);
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_add_to_queue) {
|
||||
MusicPlayerRemote.enqueue(song);
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_details) {
|
||||
SongDetailDialog.create(song).show(activity.getSupportFragmentManager(), SongDetailDialog.TAG);
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_download) {
|
||||
NavigationUtil.startDownload(activity, Collections.singletonList(song));
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_go_to_album) {
|
||||
NavigationUtil.startAlbum(activity, new Album(song), null);
|
||||
return true;
|
||||
} else if (menuItemId == R.id.action_go_to_artist) {
|
||||
NavigationUtil.startArtist(activity, new Artist(song), null);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue