PicassoProvider.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:dhis2-android-dashboard 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号