Fix refresh
This commit is contained in:
parent
ff5e281db7
commit
8ea049c956
|
@ -442,6 +442,7 @@ public class ProfileFragment extends LoaderFragment implements ScrollableToTop,
|
||||||
if(savedFragment==null && isOwnProfile){
|
if(savedFragment==null && isOwnProfile){
|
||||||
savedFragment=SavedPostsTimelineFragment.newInstance(accountID, account, false);
|
savedFragment=SavedPostsTimelineFragment.newInstance(accountID, account, false);
|
||||||
}
|
}
|
||||||
|
if(!refreshing){
|
||||||
pager.getAdapter().notifyDataSetChanged();
|
pager.getAdapter().notifyDataSetChanged();
|
||||||
pager.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener(){
|
pager.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener(){
|
||||||
@Override
|
@Override
|
||||||
|
@ -452,6 +453,7 @@ public class ProfileFragment extends LoaderFragment implements ScrollableToTop,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
super.dataLoaded();
|
super.dataLoaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue