QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 FileManageFileToolPresenter.java 源代码,内容仅作参考
package com.tencent.mtt.file.page.filemanage.filetool;
import android.os.Bundle;
import android.view.View;
import com.tencent.common.utils.UrlUtils;
import com.tencent.mtt.browser.window.UrlParams;
import com.tencent.mtt.docscan.DocScanRoute;
import com.tencent.mtt.docscan.camera.tab.DocScanTab;
import com.tencent.mtt.file.page.filemanage.FileManagePageCardPresenter;
import com.tencent.mtt.file.page.imageexport.imagepickexport.ImagePickExportPicker;
import com.tencent.mtt.file.page.statistics.FileKeyEvent;
import com.tencent.mtt.file.page.toolc.ToolCAbility;
import com.tencent.mtt.nxeasy.listview.base.ItemDataHolder;
import com.tencent.mtt.nxeasy.listview.base.OnItemHolderViewClickListener;
import com.tencent.mtt.nxeasy.listview.base.RecyclerViewAdapter;
import com.tencent.mtt.nxeasy.page.EasyPageContext;
import java.util.ArrayList;
import java.util.Iterator;
public class FileManageFileToolPresenter extends FileManagePageCardPresenter implements OnItemHolderViewClickListener {
FileManageFileToolView f60846b;
RecyclerViewAdapter f60847c;
ArrayList<FileToolDataHolder> f60848d;
public FileManageFileToolPresenter(EasyPageContext easyPageContext) {
super(easyPageContext);
this.f60848d = new ArrayList<>();
this.f60846b = new FileManageFileToolView(easyPageContext.f68800c);
this.f60847c = new RecyclerViewAdapter();
this.f60846b.setAdapter(this.f60847c);
this.f60848d.add(new FileToolDataHolder(12, "文件加密", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_encrypt.png"));
this.f60848d.add(new FileToolDataHolder(13, "视频转格式", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_m3u82mp4.png"));
this.f60848d.add(new FileToolDataHolder(10, "文件压缩", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_compress.png"));
this.f60848d.add(new FileToolDataHolder(14, "文件解压", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_decompress.png"));
this.f60848d.add(new FileToolDataHolder(16, "PDF工具", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_pdftools.png"));
this.f60848d.add(new FileToolDataHolder(15, "图片拼接", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_imgjoint.png"));
this.f60848d.add(new FileToolDataHolder(18, "文档转长图", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_doc2img.png"));
this.f60848d.add(new FileToolDataHolder(11, "提取文字", "https://m4.publicimg.browser.qq.com/publicimg/nav/file/file_manage_file_tool_scandoc.png"));
Iterator<FileToolDataHolder> it = this.f60848d.iterator();
while (it.hasNext()) {
it.next().a(this);
}
this.f60847c.a(this.f60848d);
}
private void a(String str) {
UrlParams urlParams = new UrlParams(UrlUtils.addParamsToUrl(UrlUtils.addParamsToUrl(str, "callFrom=" + this.f60799a.g), "callerName=" + this.f60799a.h));
urlParams.d(true);
this.f60799a.f68798a.b(urlParams);
}
@Override
public View a() {
return this.f60846b;
}
@Override
public void a(String str, Bundle bundle) {
this.f60847c.notifyDataSetChanged();
}
@Override
public void onHolderItemViewClick(View view, ItemDataHolder itemDataHolder) {
String str;
int i = ((FileToolDataHolder) itemDataHolder).f60860b;
switch (i) {
case 10:
final ToolCAbility toolCAbility = new ToolCAbility(this.f60799a);
toolCAbility.a(new ToolCAbility.ActionResult<Boolean>() {
@Override
public void a(Boolean bool) {
toolCAbility.n();
}
});
break;
case 11:
DocScanRoute.a(this.f60799a, true, -1, DocScanTab.OCR);
break;
case 12:
final ToolCAbility toolCAbility2 = new ToolCAbility(this.f60799a);
toolCAbility2.e(new ToolCAbility.ActionResult<Void>() {
@Override
public void a(Void r1) {
toolCAbility2.n();
}
});
break;
case 13:
final ToolCAbility toolCAbility3 = new ToolCAbility(this.f60799a);
toolCAbility3.a("tool", new ToolCAbility.ActionResult<Boolean>() {
@Override
public void a(Boolean bool) {
toolCAbility3.n();
}
});
break;
case 14:
str = "qb://filesdk/fileziplist";
a(str);
break;
case 15:
new ImagePickExportPicker(false, 1).a(null, null);
break;
case 16:
str = "qb://filesdk/pdftoollist";
a(str);
break;
case 18:
final ToolCAbility toolCAbility4 = new ToolCAbility(this.f60799a);
toolCAbility4.b(new ToolCAbility.ActionResult<Void>() {
@Override
public void a(Void r1) {
toolCAbility4.n();
}
});
break;
}
new FileKeyEvent("FM_click_tool_any", this.f60799a.g, this.f60799a.h, "", "", "", "type:" + i).b();
}
}