1
0
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:
Mariotaku Lee 2015-04-06 02:22:31 +08:00
parent 490b1d3aef
commit ab3b4fc171
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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