public static Picasso getInstance(Context context, boolean changeCredentials) {
if (mPicasso == null || changeCredentials) {
OkHttpClient client = RepoManager.provideOkHttpClient(
DhisController.getInstance().getUserCredentials(), context);
mPicasso = new Picasso.Builder(context)
.downloader(new OkHttpDownloader(client))
.build();
mPicasso.setIndicatorsEnabled(false);
mPicasso.setLoggingEnabled(false);
}
return mPicasso;
}
PicassoProvider.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:dhis2-android-dashboard
作者:
评论列表
文章目录