use of android.support.v4.app.FragmentActivity in project Robot-Scouter by SUPERCILEX.
the class ActivityScoutListFragment method onAuthStateChanged.
@Override
public void onAuthStateChanged(@NonNull FirebaseAuth auth) {
if (getActivity().getCallingActivity() != null && isTabletMode(getContext())) {
FragmentActivity activity = getActivity();
activity.setResult(Activity.RESULT_OK, new Intent().putExtra(KEY_SCOUT_ARGS, getBundle()));
activity.finish();
} else {
super.onAuthStateChanged(auth);
}
}
use of android.support.v4.app.FragmentActivity in project superCleanMaster by joyoyao.
the class DialogUtil method showAlertDialog.
/**
* 显示一个一般的对话框(String内容).
* @param context
*
*/
public static AlertDialogFragment showAlertDialog(Context context, String message) {
FragmentActivity activity = (FragmentActivity) context;
AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, null, message, null, null);
FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
// 指定一个系统转场动画
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
newFragment.show(ft, mDialogTag);
return newFragment;
}
use of android.support.v4.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class FollowerListResource method attachTo.
public static FollowerListResource attachTo(String userIdOrUid, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
FollowerListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid);
instance.targetAt(fragment, requestCode);
FragmentUtils.add(instance, activity, tag);
}
return instance;
}
use of android.support.v4.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class FollowingListResource method attachTo.
public static FollowingListResource attachTo(String userIdOrUid, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
FollowingListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid);
instance.targetAt(fragment, requestCode);
FragmentUtils.add(instance, activity, tag);
}
return instance;
}
use of android.support.v4.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class MovieResource method attachTo.
public static MovieResource attachTo(long movieId, SimpleMovie simpleMovie, Movie movie, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
MovieResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(movieId, simpleMovie, movie);
instance.targetAt(fragment, requestCode);
FragmentUtils.add(instance, activity, tag);
}
return instance;
}
Aggregations