Search in sources :

Example 1 with CollectionAddDialog

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;
}
Also used : CollectionAddDialog(org.musicbrainz.mobile.dialog.CollectionAddDialog) DialogFragment(android.support.v4.app.DialogFragment)

Aggregations

DialogFragment (android.support.v4.app.DialogFragment)1 CollectionAddDialog (org.musicbrainz.mobile.dialog.CollectionAddDialog)1