导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - ReminderReceiver.java 源代码

正在查看: Perplexity v2.48.1 应用的 ReminderReceiver.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ai.perplexity.app.android.assistant.action;

import V6.C1101q;
import V6.L;
import Xm.d;
import android.app.NotificationChannel;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import b.l;
import bl.f;
import d.J0;
import d.K0;
import d.M0;
import java.util.Iterator;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u0000B\u0007¢\u0006\u0004\b\u0001\u0010\u0002¨\u0006\u0003"}, d2 = {"Lai/perplexity/app/android/assistant/action/ReminderReceiver;", "<init>", "()V", "assistant_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class ReminderReceiver extends BroadcastReceiver {

    public volatile boolean f19526a = false;

    public final Object f19527b = new Object();

    public M0 f19528c;

    public final void a(Context context, Intent intent) {
        if (this.f19526a) {
            return;
        }
        synchronized (this.f19527b) {
            try {
                if (!this.f19526a) {
                    this.f19528c = (M0) ((l) ((K0) d.C0(context))).f21723G1.get();
                    this.f19526a = true;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override
    public final void onReceive(Context context, Intent intent) {
        Intrinsics.h(context, "context");
        Intrinsics.h(intent, "intent");
        a(context, intent);
        String stringExtra = intent.getStringExtra("reminder_id");
        if (stringExtra == null) {
            stringExtra = "";
        }
        M0 m02 = this.f19528c;
        Object obj = null;
        if (m02 == null) {
            Intrinsics.n("remindersManager");
            throw null;
        }
        Iterator it = m02.a().iterator();
        while (true) {
            if (!it.hasNext()) {
                break;
            }
            Object next = it.next();
            if (Intrinsics.c(((J0) next).f25364a, stringExtra)) {
                obj = next;
                break;
            }
        }
        J0 j02 = (J0) obj;
        if (j02 == null) {
            return;
        }
        Context context2 = m02.f25386a;
        L l4 = new L(context2);
        L l5 = m02.f25388c;
        if (l5 == null) {
            l5 = new L(context2);
            m02.f25388c = l5;
        }
        if (l5.f16098b.areNotificationsEnabled()) {
            if (!m02.f25389d) {
                NotificationChannel notificationChannel = new NotificationChannel("reminders", "Reminders", 4);
                notificationChannel.setDescription("Reminders");
                L l10 = m02.f25388c;
                if (l10 == null) {
                    l10 = new L(context2);
                    m02.f25388c = l10;
                }
                l10.f16098b.createNotificationChannel(notificationChannel);
                m02.f25389d = true;
            }
            C1101q c1101q = new C1101q(context2, "reminders");
            c1101q.f16159v.icon = 2131231110;
            c1101q.f16142e = C1101q.b("Reminder");
            c1101q.f16143f = C1101q.b(j02.f25365b);
            c1101q.f16147j = 1;
            l4.a(j02.f25364a.hashCode(), c1101q.a());
        }
        m02.c(f.T0(m02.a(), j02));
    }
}