mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-18 19:43:35 +01:00
media timeline is back
This commit is contained in:
parent
490b1d3aef
commit
ab3b4fc171
@ -144,7 +144,7 @@ public class UserMediaTimelineFragment extends BaseSupportFragment
|
||||
final String screenName = args.getString(EXTRA_SCREEN_NAME);
|
||||
final int tabPosition = args.getInt(EXTRA_TAB_POSITION, -1);
|
||||
return new MediaTimelineLoader(context, accountId, userId, screenName, sinceId, maxId, null,
|
||||
null, tabPosition, false);
|
||||
null, tabPosition, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -54,13 +54,11 @@ public class MediaTimelineLoader extends Twitter4JStatusesLoader {
|
||||
@NonNull
|
||||
@Override
|
||||
protected ResponseList<Status> getStatuses(@NonNull final Twitter twitter, final Paging paging) throws TwitterException {
|
||||
if (twitter == null) return null;
|
||||
if (mUserId != -1)
|
||||
return twitter.getMediaTimeline(mUserId, paging);
|
||||
else if (mUserScreenName != null)
|
||||
return twitter.getMediaTimeline(mUserScreenName, paging);
|
||||
else
|
||||
return null;
|
||||
throw new TwitterException("Wrong user");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user