use of androidx.fragment.app.FragmentActivity in project android by owncloud.
the class FileMenuFilter method anyFileVideoPreviewing.
private boolean anyFileVideoPreviewing() {
final FragmentActivity activity = (FragmentActivity) mContext;
Fragment secondFragment = activity.getSupportFragmentManager().findFragmentByTag(TAG_SECOND_FRAGMENT);
boolean videoPreviewing = false;
if (secondFragment instanceof PreviewVideoFragment) {
for (int i = 0; !videoPreviewing && i < mFiles.size(); i++) {
videoPreviewing = ((PreviewVideoFragment) secondFragment).getFile().equals(mFiles.get(i));
}
}
return videoPreviewing;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class TimelineBroadcastListResource method attachTo.
public static TimelineBroadcastListResource attachTo(String userIdOrUid, String topic, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
TimelineBroadcastListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(userIdOrUid, topic);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class BroadcastLikerListResource method attachTo.
public static BroadcastLikerListResource attachTo(long broadcastId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastLikerListResource 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 BroadcastAndCommentListResource method attachTo.
public static BroadcastAndCommentListResource attachTo(long broadcastId, Broadcast broadcast, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastAndCommentListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(broadcastId, broadcast);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
use of androidx.fragment.app.FragmentActivity in project Douya by DreaminginCodeZH.
the class BroadcastCommentListResource method attachTo.
public static BroadcastCommentListResource attachTo(long broadcastId, Fragment fragment, String tag, int requestCode) {
FragmentActivity activity = fragment.getActivity();
BroadcastCommentListResource instance = FragmentUtils.findByTag(activity, tag);
if (instance == null) {
instance = newInstance(broadcastId);
FragmentUtils.add(instance, activity, tag);
}
instance.setTarget(fragment, requestCode);
return instance;
}
Aggregations