use of android.support.v4.app.DialogFragment in project Android-DialogFragments by wada811.
the class LoaderSpinnerProgressDialogFragmentExamplesFragment method onLoadFinished.
@Override
public void onLoadFinished(Loader<Object> objectLoader, Object o) {
Log.i(TAG, "onLoadFinished");
getLoaderManager().destroyLoader(objectLoader.getId());
Fragment fragment = getChildFragmentManager().findFragmentByTag(ProgressDialogFragment.TAG);
if (fragment != null) {
ProgressDialogFragment dialogFragment = (ProgressDialogFragment) fragment;
dialogFragment.dismissAllowingStateLoss();
}
}
use of android.support.v4.app.DialogFragment in project wire-android by wireapp.
the class ZetaPreferencesActivity method onPreferenceDisplayDialog.
@Override
public boolean onPreferenceDisplayDialog(PreferenceFragmentCompat preferenceFragmentCompat, Preference preference) {
final String key = preference.getKey();
final DialogFragment f;
if (preference.getKey().equals(getString(R.string.pref_options_ringtones_ping_key)) || preference.getKey().equals(getString(R.string.pref_options_ringtones_text_key)) || preference.getKey().equals(getString(R.string.pref_options_ringtones_ringtone_key))) {
final int defaultId = preference.getExtras().getInt(WireRingtonePreferenceDialogFragment.EXTRA_DEFAULT);
f = WireRingtonePreferenceDialogFragment.newInstance(key, defaultId);
} else {
return false;
}
f.setTargetFragment(preferenceFragmentCompat, 0);
f.show(getSupportFragmentManager(), key);
return true;
}
use of android.support.v4.app.DialogFragment in project zype-android by zype.
the class VideoCastControllerActivity method showTracksChooserDialog.
private void showTracksChooserDialog() throws TransientNetworkDisconnectionException, NoConnectionException {
FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
Fragment prev = getSupportFragmentManager().findFragmentByTag(DIALOG_TAG);
if (prev != null) {
transaction.remove(prev);
}
transaction.addToBackStack(null);
// Create and show the dialog.
TracksChooserDialog dialogFragment = TracksChooserDialog.newInstance(mCastManager.getRemoteMediaInformation());
dialogFragment.show(transaction, DIALOG_TAG);
}
use of android.support.v4.app.DialogFragment in project zype-android by zype.
the class ChromecastFragment method showTracksChooserDialog.
private void showTracksChooserDialog() throws TransientNetworkDisconnectionException, NoConnectionException {
FragmentTransaction transaction = getFragmentManager().beginTransaction();
Fragment prev = getFragmentManager().findFragmentByTag(DIALOG_TAG);
if (prev != null) {
transaction.remove(prev);
}
transaction.addToBackStack(null);
// Create and show the dialog.
TracksChooserDialog dialogFragment = TracksChooserDialog.newInstance(mCastManager.getRemoteMediaInformation());
dialogFragment.show(transaction, DIALOG_TAG);
}
use of android.support.v4.app.DialogFragment in project bitcoin-wallet by bitcoin-wallet.
the class BackupWalletDialogFragment method show.
public static void show(final FragmentManager fm) {
final DialogFragment newFragment = new BackupWalletDialogFragment();
newFragment.show(fm, FRAGMENT_TAG);
}
Aggregations