正在查看: Atlys v4.8.7 应用的 NotificationService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 NotificationService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.atlys.android.notification;
import B5.k;
import Ep.a;
import Ql.g;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import b2.v;
import b2.x;
import com.atlys.android.ui.main.MainActivity;
import com.bumptech.glide.c;
import com.freshchat.consumer.sdk.Freshchat;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.horcrux.svg.c0;
import dn.G;
import dn.P;
import e0.AbstractC1742c;
import g8.e;
import g8.f;
import kotlin.Metadata;
import kotlin.jvm.internal.l;
import pj.i;
import sj.b;
import yf.h;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/atlys/android/notification/NotificationService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "<init>", "()V", "app_release"}, k = 1, mv = {1, AbstractC1742c.f23923d, 0})
public final class NotificationService extends FirebaseMessagingService implements b {
public static final int l = 0;
public volatile i f23011h;
public final Object f23012i = new Object();
public boolean f23013j = false;
public e f23014k;
public final void c(RemoteMessage remoteMessage) {
String str;
h b10;
String str2;
a.a.a("Firebase Notification " + remoteMessage.b(), new Object[0]);
if (Freshchat.isFreshchatNotification(remoteMessage)) {
Freshchat.handleFcmMessage(this, remoteMessage);
return;
}
h b11 = remoteMessage.b();
if (b11 == null || (str = (String) b11.a) == null || (b10 = remoteMessage.b()) == null || (str2 = (String) b10.b) == null) {
return;
}
Intent intent = new Intent((Context) this, (Class<?>) MainActivity.class);
intent.setFlags(268468224);
PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 201326592);
x xVar = new x(this, "visa_notification_channel_id");
xVar.f20302s.icon = 2131231699;
xVar.f20289e = x.b(str);
xVar.f20290f = x.b(str2);
v vVar = new v();
vVar.f20284d = x.b(str2);
xVar.e(vVar);
xVar.f20294j = 1;
xVar.f20291g = activity;
xVar.c(true);
Object systemService = getSystemService("notification");
l.f(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
NotificationManager notificationManager = (NotificationManager) systemService;
if (Build.VERSION.SDK_INT >= 26) {
c0.D();
c0.r(notificationManager, c0.C());
}
notificationManager.notify(c.d0(Ol.e.a, new g(1000, 2000, 1)), xVar.a());
}
public final void d(String str) {
l.h(str, "token");
e eVar = this.f23014k;
if (eVar == null) {
l.o("notificationRepository");
throw null;
}
G.C(eVar.f25815b, P.c, 0, new g8.c(eVar, str, null), 2);
}
public final Object e0() {
if (this.f23011h == null) {
synchronized (this.f23012i) {
try {
if (this.f23011h == null) {
this.f23011h = new i(this);
}
} finally {
}
}
}
return this.f23011h.e0();
}
public final void onCreate() {
if (!this.f23013j) {
this.f23013j = true;
k kVar = ((B5.i) ((f) e0())).f2552a;
kVar.u();
this.f23014k = (e) kVar.f2559E.get();
}
super/*android.app.Service*/.onCreate();
}
}