use of com.wada811.android.dialogfragments.material.ProgressDialogFragment 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 com.wada811.android.dialogfragments.material.ProgressDialogFragment 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();
}
}
Aggregations