1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-30 16:35:00 +01:00

Thumbor is enabled when no Extra specified

This commit is contained in:
Mariotaku 2016-01-30 14:37:52 +08:00
parent 8aad854fd8
commit 96315d194d

View File

@ -90,7 +90,7 @@ public class TwidereMediaDownloader implements MediaDownloader, Constants {
final Authorization auth;
final ParcelableCredentials account;
final MediaExtra mediaExtra = extra instanceof MediaExtra ? (MediaExtra) extra : null;
final boolean useThumbor = mediaExtra != null && mediaExtra.isUseThumbor();
final boolean useThumbor = mediaExtra == null || mediaExtra.isUseThumbor();
if (isTwitterAuthRequired(uri) && mediaExtra != null) {
account = ParcelableAccount.getCredentials(mContext, mediaExtra.getAccountId());
auth = TwitterAPIFactory.getAuthorization(account);