use of com.simplecity.amp_library.tagger.TaggerDialog in project Shuttle by timusus.
the class BaseDetailFragment method onSongOverflowClick.
@Override
public void onSongOverflowClick(int position, View v, Song song) {
PopupMenu popupMenu = new PopupMenu(getContext(), v);
MenuUtils.setupSongMenu(popupMenu, showSongOverflowRemoveButton());
popupMenu.setOnMenuItemClickListener(MenuUtils.getSongMenuClickListener(getContext(), song, taggerDialog -> {
if (ShuttleUtils.isUpgraded()) {
taggerDialog.show(getChildFragmentManager());
} else {
UpgradeDialog.getUpgradeDialog(getActivity()).show();
}
}, deleteDialog -> deleteDialog.show(getChildFragmentManager()), () -> songRemoved(position, song), null, null));
popupMenu.show();
}
use of com.simplecity.amp_library.tagger.TaggerDialog in project Shuttle by timusus.
the class BaseDetailFragment method onAlbumOverflowClicked.
@Override
public void onAlbumOverflowClicked(View v, Album album) {
PopupMenu popupMenu = new PopupMenu(getContext(), v);
MenuUtils.setupAlbumMenu(popupMenu);
popupMenu.setOnMenuItemClickListener(MenuUtils.getAlbumMenuClickListener(getContext(), album, taggerDialog -> taggerDialog.show(getChildFragmentManager()), deleteDialog -> deleteDialog.show(getChildFragmentManager()), () -> UpgradeDialog.getUpgradeDialog(getActivity()).show(), null));
popupMenu.show();
}
Aggregations