From 96315d194d9849f1204b27a03737ef427f4e3a8a Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Sat, 30 Jan 2016 14:37:52 +0800 Subject: [PATCH] Thumbor is enabled when no Extra specified --- .../mariotaku/twidere/util/media/TwidereMediaDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/media/TwidereMediaDownloader.java b/twidere/src/main/java/org/mariotaku/twidere/util/media/TwidereMediaDownloader.java index c5eac13b3..8b2ab3ebd 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/media/TwidereMediaDownloader.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/media/TwidereMediaDownloader.java @@ -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);