正在查看: Moneyman v2.316.0.0 应用的 ExponeaPushTrackingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Moneyman v2.316.0.0 应用的 ExponeaPushTrackingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.exponea.sdk.services;
import Vf.A;
import android.app.Activity;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import com.exponea.sdk.Exponea;
import com.exponea.sdk.ExponeaExtras;
import com.exponea.sdk.models.NotificationAction;
import com.exponea.sdk.models.NotificationData;
import com.exponea.sdk.services.inappcontentblock.ContentBlockCarouselViewController;
import com.exponea.sdk.util.ExtensionsKt;
import com.exponea.sdk.util.Logger;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.c;
import kotlin.jvm.internal.d;
import kotlin.jvm.internal.i;
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0010\u0018\u0000 \u00122\u00020\u0001:\u0001\u0012B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u001f\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\t\u0010\nJ\u0017\u0010\u000b\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u0019\u0010\u000f\u001a\u00020\b2\b\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0014¢\u0006\u0004\b\u000f\u0010\u0010J\u001f\u0010\u0011\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0011\u0010\n¨\u0006\u0013"}, d2 = {"Lcom/exponea/sdk/services/ExponeaPushTrackingActivity;", "Landroid/app/Activity;", "<init>", "()V", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "LVf/A;", "dismissNotification", "(Landroid/content/Context;Landroid/content/Intent;)V", "closeNotificationTray", "(Landroid/content/Context;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "processPushClick", "Companion", "sdk_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public class ExponeaPushTrackingActivity extends Activity {
public static final Companion INSTANCE = new Companion(null);
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002JS\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\n2\"\u0010\u000b\u001a\u001e\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\r0\fj\u000e\u0012\u0004\u0012\u00020\r\u0012\u0004\u0012\u00020\r`\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010¢\u0006\u0002\u0010\u0011¨\u0006\u0012"}, d2 = {"Lcom/exponea/sdk/services/ExponeaPushTrackingActivity$Companion;", ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID, "()V", "getClickIntent", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "id", ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID, "data", "Lcom/exponea/sdk/models/NotificationData;", "messageData", "Ljava/util/HashMap;", ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID, "Lkotlin/collections/HashMap;", "deliveredTimestamp", ContentBlockCarouselViewController.EMPTY_PLACEHOLDER_ID, "(Landroid/content/Context;ILcom/exponea/sdk/models/NotificationData;Ljava/util/HashMap;Ljava/lang/Double;)Landroid/content/Intent;", "sdk_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class Companion {
public Companion(d dVar) {
this();
}
public final Intent getClickIntent(Context context, int id, NotificationData data, HashMap<String, String> messageData, Double deliveredTimestamp) {
i.g(context, "context");
i.g(messageData, "messageData");
Intent intent = new Intent(context, MessagingUtils.INSTANCE.determinePushTrackingActivityClass());
intent.putExtra(ExponeaExtras.EXTRA_NOTIFICATION_ID, id);
intent.putExtra(ExponeaExtras.EXTRA_DATA, data);
intent.putExtra(ExponeaExtras.EXTRA_CUSTOM_DATA, messageData);
intent.putExtra(ExponeaExtras.EXTRA_DELIVERED_TIMESTAMP, deliveredTimestamp);
intent.addFlags(603979776);
intent.setPackage(context.getPackageName());
return intent;
}
private Companion() {
}
}
private final void closeNotificationTray(Context context) {
if (Build.VERSION.SDK_INT <= 30) {
context.sendBroadcast(new Intent("android.intent.action.CLOSE_SYSTEM_DIALOGS"));
}
}
private final void dismissNotification(Context context, Intent intent) {
int intExtra = intent.getIntExtra(ExponeaExtras.EXTRA_NOTIFICATION_ID, -1);
if (intExtra != -1) {
Object systemService = context.getSystemService(NotificationAction.ACTION_TYPE_NOTIFICATION);
i.e(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
((NotificationManager) systemService).cancel(intExtra);
}
}
@Override
public void onCreate(Bundle savedInstanceState) {
A a8;
super.onCreate(savedInstanceState);
try {
int i5 = Result.b;
Intent intent = getIntent();
i.f(intent, "getIntent(...)");
processPushClick(this, intent);
a8 = A.a;
} catch (Throwable th) {
int i7 = Result.b;
a8 = c.a(th);
}
ExtensionsKt.logOnException(a8);
finish();
}
public void processPushClick(Context context, Intent intent) {
i.g(context, "context");
i.g(intent, "intent");
Logger.INSTANCE.i(this, "Push notification clicked");
Exponea.INSTANCE.processPushNotificationClickInternally$sdk_release(intent);
dismissNotification(context, intent);
closeNotificationTray(context);
}
}