From 8994d81c66c6cc73925ab60905150730d939e804 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 18 Jun 2017 17:20:54 -0400 Subject: [PATCH] Potential simple fix for images failing to load #198. --- .../main/java/com/keylesspalace/tusky/TuskyApplication.java | 3 ++- build.gradle | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java b/app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java index c96f608a..4b0996c9 100644 --- a/app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java +++ b/app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java @@ -18,6 +18,7 @@ package com.keylesspalace.tusky; import android.app.Application; import android.net.Uri; +import com.keylesspalace.tusky.util.OkHttpUtils; import com.squareup.picasso.Picasso; import com.jakewharton.picasso.OkHttp3Downloader; @@ -27,7 +28,7 @@ public class TuskyApplication extends Application { super.onCreate(); // Initialize Picasso configuration Picasso.Builder builder = new Picasso.Builder(this); - builder.downloader(new OkHttp3Downloader(this)); + builder.downloader(new OkHttp3Downloader(OkHttpUtils.getCompatibleClient())); if (BuildConfig.DEBUG) { builder.listener(new Picasso.Listener() { @Override diff --git a/build.gradle b/build.gradle index bfed5920..0a26ece5 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.2' + classpath 'com.android.tools.build:gradle:2.3.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files