Skip to content

Commit

Permalink
修复Picasso https证书
Browse files Browse the repository at this point in the history
  • Loading branch information
sifacaii committed Oct 15, 2022
1 parent 473d0fe commit a96c5d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/org/sifacai/vlcjellyfin/JfClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import com.lzy.okgo.callback.AbsCallback;
import com.lzy.okgo.model.HttpHeaders;
import com.lzy.okgo.model.Response;
import com.squareup.picasso.OkHttp3Downloader;
import com.squareup.picasso.Picasso;

import org.sifacai.vlcjellyfin.Bean.Item;
import org.sifacai.vlcjellyfin.Bean.Items;
Expand Down Expand Up @@ -130,6 +132,10 @@ public static void init(Application application) {
OkGo.getInstance().init(application)
.setOkHttpClient(builder.build())
.setRetryCount(3);
Picasso.setSingletonInstance(new Picasso.Builder(application.getBaseContext())
.downloader(new OkHttp3Downloader(builder.build()))
.build()
);
}

/**
Expand Down

0 comments on commit a96c5d4

Please sign in to comment.