QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 TencentFileUtil.java 源代码,内容仅作参考
package com.tencent.mtt.businesscenter.utils;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcelable;
import com.tencent.mtt.ContextHolder;
import com.tencent.mtt.base.notification.facade.IMessageBubbleListener;
import com.tencent.mtt.base.stat.StatManager;
import com.tencent.mtt.browser.WebEngine;
import com.tencent.mtt.setting.PublicSettingManager;
import java.util.ArrayList;
import java.util.List;
public class TencentFileUtil {
private static long f47335a;
static class AnonymousClass1 implements IMessageBubbleListener {
final int f47336a;
private void d() {
if (this.f47336a == 1) {
StatManager.b().c("BZSI004");
}
PublicSettingManager.a().setInt("special_site_tencent_file_pic_tips_count", 0);
}
@Override
public void a() {
d();
}
@Override
public void b() {
d();
}
@Override
public void c() {
TencentFileUtil.b();
}
}
static class AnonymousClass2 implements IMessageBubbleListener {
final int f47337a;
final List f47338b;
final String f47339c;
final String f47340d;
private void a(String str, int i, List<String> list, String str2, String str3) {
if (i == 1) {
StatManager.b().c("BZSI002");
}
TencentFileUtil.a(ContextHolder.getAppContext(), false, list, str2, WebEngine.e().d(str2), str3);
PublicSettingManager.a().setInt("special_site_tencent_file_pic_tips_count", 0);
}
@Override
public void a() {
a("onMessageClick", this.f47337a, this.f47338b, this.f47339c, this.f47340d);
}
@Override
public void b() {
a("onButtonClick", this.f47337a, this.f47338b, this.f47339c, this.f47340d);
}
@Override
public void c() {
TencentFileUtil.b();
}
}
public static void a(Context context, boolean z, List<String> list, String str, String str2, String str3) {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(z ? "tencentfile://feature/dispatch?feature=16&from=com.tencent.mtt" : "tencentfile://feature/dispatch?feature=15&from=com.tencent.mtt"));
Bundle bundle = new Bundle();
ArrayList<? extends Parcelable> arrayList = new ArrayList<>();
for (String str4 : list) {
Bundle bundle2 = new Bundle();
bundle2.putString("url", str4);
bundle2.putString("cookie", str2);
bundle2.putString("refer", str);
bundle2.putString("suggestName", str3);
arrayList.add(bundle2);
}
bundle.putParcelableArrayList("params", arrayList);
intent.putExtras(bundle);
try {
context.startActivity(intent);
} catch (Exception unused) {
}
}
public static void b() {
PublicSettingManager.a().setInt("special_site_tencent_file_pic_tips_count", PublicSettingManager.a().getInt("special_site_tencent_file_pic_tips_count", 0) + 1);
}
}