use of android.app.Fragment in project AisenWeiBo by wangdan.
the class TimelineCommentFragment method onToolbarDoubleClick.
@Override
public boolean onToolbarDoubleClick() {
if (AisenUtils.checkTabsFragmentCanRequestData(this)) {
Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
if (fragment != null && fragment instanceof TimelineDetailPagerFragment) {
((TimelineDetailPagerFragment) fragment).swipeRefreshLayout.setRefreshing(true);
}
requestDataDelaySetRefreshing(AppSettings.REQUEST_DATA_DELAY);
getRefreshView().setSelectionFromTop(0, 0);
return true;
}
return false;
}
use of android.app.Fragment in project AisenWeiBo by wangdan.
the class ProfileAboutFragment method onFriendshipCreated.
@Override
public void onFriendshipCreated(WeiBoUser targetUser) {
if (mFriendship != null)
mFriendship.getSource().setFollowing(true);
mUser.setRecentStatusId(targetUser.getRecentStatusId());
mGroupMemberListed = new GroupMemberListed();
mGroupMemberListed.setLists(new ArrayList<GroupListed>());
mGroupMemberListed.setUid(mUser.getIdstr());
setProfile();
setGroupList();
// 设置Pager的菜单显示
Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
use of android.app.Fragment in project AisenWeiBo by wangdan.
the class ProfileAboutFragment method onFriendshipDestoryed.
@Override
public void onFriendshipDestoryed(WeiBoUser targetUser) {
if (mFriendship != null)
mFriendship.getSource().setFollowing(false);
mGroupMemberListed = null;
mUser.setRemark("");
setProfile();
// 设置Pager的菜单显示
Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
use of android.app.Fragment in project AisenWeiBo by wangdan.
the class ProfileAboutFragment method onDestoryFollower.
@Override
public void onDestoryFollower(WeiBoUser user) {
if (mFriendship != null)
mFriendship.getTarget().setFollowing(false);
// 设置Pager的菜单显示
Fragment fragment = getActivity().getFragmentManager().findFragmentByTag(SinaCommonActivity.FRAGMENT_TAG);
((ProfilePagerFragment) fragment).setFriendshipShow(mFriendship);
}
use of android.app.Fragment in project AisenWeiBo by wangdan.
the class VersionDialogFragment method launch.
public static void launch(Activity context) {
Fragment fragment = context.getFragmentManager().findFragmentByTag("DialogFragment");
if (fragment != null) {
context.getFragmentManager().beginTransaction().remove(fragment).commit();
}
VersionDialogFragment dialogFragment = new VersionDialogFragment();
dialogFragment.show(context.getFragmentManager(), "DialogFragment");
}
Aggregations