use of android.support.v4.app.DialogFragment 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;
}
use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.
the class ReleaseActivity method showBarcodeNotFoundDialog.
private void showBarcodeNotFoundDialog() {
DialogFragment barcodeNotFound = new BarcodeNotFoundDialog();
barcodeNotFound.show(getSupportFragmentManager(), BarcodeNotFoundDialog.TAG);
}
use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.
the class LoginFragment method showLoadingDialog.
private void showLoadingDialog() {
DialogFragment loadingDialog = AuthenticatingDialog.newInstance(R.string.pd_authenticating);
loadingDialog.show(getFragmentManager(), AuthenticatingDialog.TAG);
}
use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.
the class BarcodeSearchFragment method showSubmitDialog.
private void showSubmitDialog() {
DialogFragment submitDialog = new ConfirmBarcodeDialog();
submitDialog.show(getFragmentManager(), ConfirmBarcodeDialog.TAG);
}
use of android.support.v4.app.DialogFragment in project SeriesGuide by UweTrottmann.
the class CloudSetupFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_cloud_setup, container, false);
textViewDescription = (TextView) v.findViewById(R.id.textViewCloudDescription);
textViewUsername = ButterKnife.findById(v, R.id.textViewCloudUsername);
textViewWarning = ButterKnife.findById(v, R.id.textViewCloudWarnings);
progressBar = (ProgressBar) v.findViewById(R.id.progressBarCloud);
buttonAction = (Button) v.findViewById(R.id.buttonCloudAction);
buttonRemoveAccount = ButterKnife.findById(v, R.id.buttonCloudRemoveAccount);
buttonRemoveAccount.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
setProgressVisible(true);
DialogFragment f = new RemoveCloudAccountDialogFragment();
f.show(getFragmentManager(), "remove-cloud-account");
}
});
updateViews();
setProgressVisible(true);
return v;
}
Aggregations