正在查看: Chaupal v3.2 应用的 PTPushNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 PTPushNotificationReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.pushtemplates;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.clevertap.android.sdk.CleverTapAPI;
import com.clevertap.android.sdk.pushnotification.CTPushNotificationReceiver;
import java.util.concurrent.Callable;
public class PTPushNotificationReceiver extends CTPushNotificationReceiver {
class a implements Callable<Void> {
final Context f8004a;
final Intent f8005c;
a(Context context, Intent intent) {
this.f8004a = context;
this.f8005c = intent;
}
@Override
public Void call() throws Exception {
try {
c.e(this.f8004a, this.f8005c);
c.f(this.f8004a);
return null;
} catch (Throwable th) {
com.clevertap.android.pushtemplates.a.c("Couldn't clean up images and/or couldn't delete silent notification channel: " + th.getLocalizedMessage());
return null;
}
}
}
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getStringExtra("wzrk_dl") == null) {
intent.removeExtra("wzrk_dl");
}
super.onReceive(context, intent);
Bundle extras = intent.getExtras();
if (extras == null) {
return;
}
CleverTapAPI K = CleverTapAPI.K(context, extras.getString("wzrk_acct_id"));
if (K == null) {
com.clevertap.android.pushtemplates.a.c("clevertap instance is null, not running PTPushNotificationReceiver#cleanUpFiles");
return;
}
try {
com.clevertap.android.sdk.task.a.a(K.E().f()).c().g("PTPushNotificationReceiver#cleanUpFiles", new a(context, intent));
} catch (Exception e7) {
com.clevertap.android.pushtemplates.a.c("Couldn't clean up images and/or couldn't delete silent notification channel: " + e7.getLocalizedMessage());
}
}
}