Potential simple fix for images failing to load #198.

main
Vavassor 8 years ago
parent 16b29e1acd
commit cd8044d61e
  1. 3
      app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java
  2. 2
      build.gradle

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

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

Loading…
Cancel
Save