use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class ItemForumTopicListResource method attachTo.
public static ItemForumTopicListResource attachTo(CollectableItem.Type itemType, long itemId, Integer episode, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
ItemForumTopicListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(itemType, itemId, episode);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class MovieFragmentResource method attachTo.
public static MovieFragmentResource attachTo(long movieId, SimpleMovie simpleMovie, Movie movie, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
MovieFragmentResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(movieId, simpleMovie, movie);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class MusicFragmentResource method attachTo.
public static MusicFragmentResource attachTo(long musicId, SimpleMusic simpleMusic, Music music, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
MusicFragmentResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(musicId, simpleMusic, music);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class GameGuideListResource method attachTo.
public static GameGuideListResource attachTo(long itemId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
GameGuideListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(itemId);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class UserResource method attachTo.
public static UserResource attachTo(String userIdOrUid, SimpleUser simpleUser, User user, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
UserResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid, simpleUser, user);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
Aggregations