- Temporarily disabling downloader until an OPT-IN checkbox is added to preferences, so users with bad internet connections aren't punished

This commit is contained in:
Sol
2016-01-26 13:41:07 +00:00
parent 5cb60108ea
commit 58f11b089f

View File

@@ -25,10 +25,15 @@ public class ImageFetcher {
private static final ExecutorService threadPool = Executors.newCachedThreadPool();
private static HashMap<String, HashSet<Callback>> currentFetches = new HashMap<>();
private static HashMap<String, String> tokenImages;
// Temporarily disabling downloader until a defaulted OFF checkbox is added to preferences
private static boolean FETCH = false;
public static void fetchImage(final CardView card, final String imageKey, final Callback callback) {
FThreads.assertExecutedByEdt(true);
if (!FETCH)
return;
// Fake card (like the ante prompt) trying to be "fetched"
if (imageKey.length() < 2)
return;