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
1 changed files with 1 additions and 1 deletions

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);