QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 NovelWidgetProvider.java 源代码,内容仅作参考
package com.tencent.mtt.widget;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.tencent.common.threadpool.BrowserExecutorSupplier;
import com.tencent.mtt.operation.event.EventLog;
public class NovelWidgetProvider extends AppWidgetProvider {
@Override
public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, int i, Bundle bundle) {
super.onAppWidgetOptionsChanged(context, appWidgetManager, i, bundle);
}
@Override
public void onDeleted(Context context, int[] iArr) {
super.onDeleted(context, iArr);
NovelWidgetDataReporter.a();
}
@Override
public void onDisabled(Context context) {
super.onDisabled(context);
NovelWidgetDataManager.a().d();
}
@Override
public void onEnabled(Context context) {
super.onEnabled(context);
NovelWidgetDataManager.a().d();
NovelWidgetManager.a().a(context);
}
@Override
public void onReceive(Context context, Intent intent) {
String str;
int i;
String str2;
String str3;
String str4;
super.onReceive(context, intent);
String str5 = " ";
try {
str5 = intent.getStringExtra("url");
str = intent.getStringExtra("scene");
} catch (Exception unused) {
str = "";
}
EventLog.a("小说组件", "widget", "action : ", " , jumpUrl : " + str5, "cccongzheng", 1);
boolean z = true;
if ("com.tencent.mtt.widget.novel.book.CLICK".equals(intent.getAction())) {
if (TextUtils.isEmpty(str5)) {
str5 = "qb://tab/feedschannel?component=FeedsNovelPage&module=novelsingletab&title=小说&tabId=112¤tId=181&backupUrl=qb%3a%2f%2fhome%2ffeeds%3ftabId%3d22%26ch%3d004530%26refresh%3d1&ch=006289";
}
i = 1;
str2 = "小说组件";
str3 = "widget";
str4 = "小说模块点击事件";
} else if ("com.tencent.mtt.widget.novel.welfare.CLICK".equals(intent.getAction())) {
if (TextUtils.isEmpty(str5)) {
str5 = "https://qbact.html5.qq.com/mall/#/?addressbar=hide&ch=006287";
}
i = 1;
str2 = "小说组件";
str3 = "widget";
str4 = "福利模块点击事件";
} else {
if (!"com.tencent.mtt.widget.novel.service.CLICK".equals(intent.getAction())) {
z = false;
if (!TextUtils.isEmpty(str5)) {
NovelWidgetManager.a().a(str5);
}
if (z) {
return;
}
NovelWidgetDataReporter.a(str, str5);
BrowserExecutorSupplier.forMainThreadTasks().execute(new Runnable() {
@Override
public void run() {
NovelWidgetDataManager.a().c();
}
});
return;
}
if (TextUtils.isEmpty(str5)) {
str5 = "qb://tab/feedschannel?component=FeedsNovelPage&module=novelsingletab&title=小说&tabId=112¤tId=180&backupUrl=qb%3a%2f%2fhome%2ffeeds%3ftabId%3d22%26ch%3d004530%26refresh%3d1&ch=006291";
}
i = 1;
str2 = "小说组件";
str3 = "widget";
str4 = "用户服务模块点击事件";
}
EventLog.a(str2, str3, str4, "", "guojiacui", i);
if (!TextUtils.isEmpty(str5)) {
}
if (z) {
}
}
@Override
public void onRestored(Context context, int[] iArr, int[] iArr2) {
super.onRestored(context, iArr, iArr2);
}
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] iArr) {
super.onUpdate(context, appWidgetManager, iArr);
NovelWidgetManager.a().b();
}
}