use of org.musicbrainz.mobile.dialog.CollectionAddDialog in project musicbrainz-android by jdamcd.
the class ReleaseActivity method onOptionsItemSelected.
@Override
public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
switch(item.getItemId()) {
case android.R.id.home:
if (provideArtistAction) {
startActivity(createArtistIntent());
}
return true;
case R.id.action_add_collection:
DialogFragment collectionDialog = new CollectionAddDialog();
collectionDialog.show(getSupportFragmentManager(), CollectionAddDialog.TAG);
return true;
}
return false;
}
Aggregations