use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.
the class RestoreWalletDialogFragment method show.
public static void show(final FragmentManager fm) {
final DialogFragment newFragment = new RestoreWalletDialogFragment();
newFragment.show(fm, FRAGMENT_TAG);
}
use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.
the class ProgressDialogFragment method dismissProgress.
public static void dismissProgress(final FragmentManager fm) {
final DialogFragment fragment = (DialogFragment) fm.findFragmentByTag(FRAGMENT_TAG);
fragment.dismissAllowingStateLoss();
}
use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.
the class ReportIssueDialogFragment method show.
public static void show(final FragmentManager fm, final int titleResId, final int messageResId, final String subject, final String contextualData) {
final DialogFragment newFragment = new ReportIssueDialogFragment();
final Bundle args = new Bundle();
args.putInt(KEY_TITLE, titleResId);
args.putInt(KEY_MESSAGE, messageResId);
args.putString(KEY_SUBJECT, subject);
args.putString(KEY_CONTEXTUAL_DATA, contextualData);
newFragment.setArguments(args);
newFragment.show(fm, FRAGMENT_TAG);
}
use of android.support.v4.app.DialogFragment in project musicbrainz-android by jdamcd.
the class ReleaseActivity method showReleaseSelectionDialog.
private void showReleaseSelectionDialog() {
DialogFragment releaseSelection = new ReleaseSelectionDialog();
releaseSelection.show(getSupportFragmentManager(), ReleaseSelectionDialog.TAG);
}
use of android.support.v4.app.DialogFragment in project Android-Developers-Samples by johnjohndoe.
the class StorageClientFragment method showImage.
/**
* Given the URI of an image, shows it on the screen using a DialogFragment.
*
* @param uri the Uri of the image to display.
*/
public void showImage(Uri uri) {
// BEGIN_INCLUDE (create_show_image_dialog)
if (uri != null) {
// Since the URI is to an image, create and show a DialogFragment to display the
// image to the user.
FragmentManager fm = getActivity().getSupportFragmentManager();
ImageDialogFragment imageDialog = new ImageDialogFragment(uri);
imageDialog.show(fm, "image_dialog");
}
// END_INCLUDE (create_show_image_dialog)
}
Aggregations