use of android.support.v4.app.DialogFragment in project YourAppIdea by Michenux.
the class ChangeLogHelper method showChangeLogFromVersion.
public void showChangeLogFromVersion(int resTitle, int resCloseLabel, int resChangeLog, int fromVersion, FragmentActivity fragmentActivity) {
String changeLog = getHTMLChangelog(resChangeLog, fragmentActivity.getResources(), fromVersion, fragmentActivity);
if (!TextUtils.isEmpty(changeLog)) {
FragmentManager fm = fragmentActivity.getSupportFragmentManager();
ChangeLogDialogFragment dialogFragment = ChangeLogDialogFragment.newInstance(resTitle, resCloseLabel, changeLog);
dialogFragment.show(fm, null);
}
}
use of android.support.v4.app.DialogFragment in project Android-DialogFragments by wada811.
the class LoaderSpinnerProgressDialogFragmentExamplesActivity method onLoadFinished.
@Override
public void onLoadFinished(Loader<Object> loader, Object o) {
Log.i(TAG, "onLoadFinished");
getSupportLoaderManager().destroyLoader(loader.getId());
Fragment fragment = getSupportFragmentManager().findFragmentByTag(ProgressDialogFragment.TAG);
if (fragment != null) {
ProgressDialogFragment dialogFragment = (ProgressDialogFragment) fragment;
dialogFragment.dismissAllowingStateLoss();
}
}
use of android.support.v4.app.DialogFragment in project Android-DialogFragments by wada811.
the class LoaderSpinnerProgressDialogFragmentExamplesActivity method onLoaderReset.
@Override
public void onLoaderReset(Loader<Object> loader) {
Log.i(TAG, "onLoaderReset");
getSupportLoaderManager().destroyLoader(loader.getId());
Fragment fragment = getSupportFragmentManager().findFragmentByTag(ProgressDialogFragment.TAG);
if (fragment != null) {
ProgressDialogFragment dialogFragment = (ProgressDialogFragment) fragment;
dialogFragment.dismissAllowingStateLoss();
}
}
use of android.support.v4.app.DialogFragment in project Android-DialogFragments by wada811.
the class LoaderSpinnerProgressDialogFragmentExamplesActivity method onLoaderReset.
@Override
public void onLoaderReset(Loader<Object> loader) {
Log.i(TAG, "onLoaderReset");
getSupportLoaderManager().destroyLoader(loader.getId());
Fragment fragment = getSupportFragmentManager().findFragmentByTag(ProgressDialogFragment.TAG);
if (fragment != null) {
ProgressDialogFragment dialogFragment = (ProgressDialogFragment) fragment;
dialogFragment.dismissAllowingStateLoss();
}
}
use of android.support.v4.app.DialogFragment in project Android-DialogFragments by wada811.
the class LoaderSpinnerProgressDialogFragmentExamplesFragment method onLoaderReset.
@Override
public void onLoaderReset(Loader<Object> objectLoader) {
Log.i(TAG, "onLoaderReset");
getLoaderManager().destroyLoader(objectLoader.getId());
Fragment fragment = getChildFragmentManager().findFragmentByTag(ProgressDialogFragment.TAG);
if (fragment != null) {
ProgressDialogFragment dialogFragment = (ProgressDialogFragment) fragment;
dialogFragment.dismissAllowingStateLoss();
}
}
Aggregations