use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class BroadcastRebroadcastListResource method attachTo.
public static BroadcastRebroadcastListResource attachTo(long broadcastId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastRebroadcastListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(broadcastId);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class GameResource method attachTo.
public static GameResource attachTo(long gameId, SimpleGame simpleGame, Game game, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
GameResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(gameId, simpleGame, game);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class ItemRecommendationListResource method attachTo.
public static ItemRecommendationListResource attachTo(CollectableItem.Type itemType, long itemId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
ItemRecommendationListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(itemType, 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 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);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class ItemAwardListResource method attachTo.
public static ItemAwardListResource attachTo(CollectableItem.Type itemType, long itemId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
ItemAwardListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(itemType, itemId);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
Aggregations