QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 DeviceImageUtils.java 源代码,内容仅作参考
package com.tencent.mtt.file.pagecommon.items;
import android.graphics.Bitmap;
import com.tencent.common.fresco.pipeline.CImage;
import com.tencent.common.fresco.pipeline.ImageHub;
import com.tencent.common.fresco.request.ImageRequestCallBack;
import com.tencent.common.fresco.request.ImageRequester;
import com.tencent.common.utils.bitmap.BitmapUtils;
import com.tencent.mtt.R;
import com.tencent.mtt.browser.file.FileThumbnailLoader;
public class DeviceImageUtils {
public interface CallBack {
void a(Bitmap bitmap);
}
public static void a(int i, final CallBack callBack, final int i2, final int i3) {
String str = i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? "" : "https://static.res.qq.com/nav/file/icon_pic_sumsung.png" : "https://static.res.qq.com/nav/file/icon_pic_vivo.png" : "https://static.res.qq.com/nav/file/icon_pic_oppo.png" : "https://static.res.qq.com/nav/file/icon_pic_mi.png" : "https://static.res.qq.com/nav/file/icon_pic_huawei.png";
Bitmap a2 = FileThumbnailLoader.a(str, i2, i3, false);
if (a2 != null) {
callBack.a(a2);
} else {
callBack.a(FileResourceCache.a(R.drawable.ajl, i2, i3));
ImageHub.a().a(str, new ImageRequestCallBack() {
@Override
public void onRequestFailure(ImageRequester imageRequester, Throwable th) {
}
@Override
public void onRequestSuccess(ImageRequester imageRequester, CImage cImage) {
if (cImage != null) {
Bitmap b2 = cImage.b();
if (b2 != null) {
b2 = BitmapUtils.a(cImage.b(), i2, i3, 0, false);
}
callBack.a(b2);
}
}
});
}
}
}