Potential simple fix for images failing to load #198.

This commit is contained in:
Vavassor 2017-06-18 17:20:54 -04:00
parent 93f5e416c0
commit 8994d81c66
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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