use of android.support.v4.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class BroadcastResource method attachTo.
public static BroadcastResource attachTo(long broadcastId, Broadcast broadcast, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(broadcastId, broadcast);
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 HomeBroadcastListResource method attachTo.
public static HomeBroadcastListResource attachTo(Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
HomeBroadcastListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance();
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 BroadcastListResource method attachTo.
public static BroadcastListResource attachTo(String userIdOrUid, String topic, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid, topic);
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 UserDiaryListResource method attachTo.
public static UserDiaryListResource attachTo(String userIdOrUid, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
UserDiaryListResource 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 ProfileResource method attachTo.
public static ProfileResource attachTo(String userIdOrUid, SimpleUser simpleUser, User user, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
ProfileResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid, simpleUser, user);
instance.targetAt(fragment, requestCode);
FragmentUtils.add(instance, activity, tag);
}
return instance;
}
Aggregations