导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - Notification.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 Notification.java JAVA 源代码文件

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


package com.wifitutu.link.foundation.sdk.service;

import ah0.a;
import ah0.l;
import android.content.Context;
import android.content.Intent;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.kernel.AppOnlyOneService;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.g0;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.InterfaceC3060r1;
import lg0.d6;
import lg0.e0;
import lg0.h4;
import lg0.q6;
import lg0.r4;
import lg0.t3;
import lg0.v0;
import lg0.w1;
import mg0.x;
import uj0.a;

@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u0000 \u00062\u00020\u0001:\u0002\u0007\bB\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u0005\u0010\u0003¨\u0006\t"}, d2 = {"Lcom/wifitutu/link/foundation/sdk/service/Notification;", "Lcom/wifitutu/link/foundation/kernel/AppOnlyOneService;", "<init>", "()V", "Llg0/e0;", "onCreate", "d", "a", "b", "foundation-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class Notification extends AppOnlyOneService {
    public static ChangeQuickRedirect changeQuickRedirect;

    public static final Companion INSTANCE = new Companion(null);
    public static final List<b> e = new ArrayList();
    public static b f;

    @Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010!\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J!\u0010\n\u001a\u00020\t2\n\u0010\u0006\u001a\u00060\u0004j\u0002`\u00052\u0006\u0010\b\u001a\u00020\u0007¢\u0006\u0004\b\n\u0010\u000bR\u0018\u0010\r\u001a\u0004\u0018\u00010\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\r\u0010\u000eR\u001a\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\f0\u000f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0010\u0010\u0011¨\u0006\u0012"}, d2 = {"Lcom/wifitutu/link/foundation/sdk/service/Notification$a;", "", "<init>", "()V", "", "Lcom/wifitutu/link/foundation/core/PushTranscationId;", "id", "Landroid/app/Notification;", "noti", "Llg0/e0;", "a", "(ILandroid/app/Notification;)V", "Lcom/wifitutu/link/foundation/sdk/service/Notification$b;", "_current", "Lcom/wifitutu/link/foundation/sdk/service/Notification$b;", "", "_queue", "Ljava/util/List;", "foundation-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Companion {
        public static ChangeQuickRedirect changeQuickRedirect;

        @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "", "invoke", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class C0295a extends p implements a<Boolean> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final int s;
            public final android.app.Notification t;

            public C0295a(int i, android.app.Notification notification) {
                super(0);
                this.s = i;
                this.t = notification;
            }

            @Override
            public final Boolean invoke() {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15627, new Class[0], Boolean.class);
                return proxy.isSupported ? (Boolean) proxy.result : Boolean.valueOf(Notification.e.add(new b(this.s, this.t)));
            }

            @Override
            public Boolean invoke() {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15628, new Class[0], Object.class);
                return proxy.isSupported ? proxy.result : invoke();
            }
        }

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lqs/t3;", "it", "Llg0/e0;", "a", "(Lqs/t3;)V"}, k = 3, mv = {1, 8, 0})
        public static final class b extends p implements l<t3, e0> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public static final b s = new b();

            @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
            public static final class C0296a extends p implements a<e0> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public static final C0296a s = new C0296a();

                @Metadata(d1 = {"\u0000\u0016\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000*\b\u0012\u0004\u0012\u00020\u00030\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"", "T", "Lcom/wifitutu/link/foundation/kernel/a;", "Lqs/r4;", "Llg0/e0;", "a", "(Lcom/wifitutu/link/foundation/kernel/a;)V"}, k = 3, mv = {1, 8, 0})
                public static final class C0297a extends p implements l<com.wifitutu.link.foundation.kernel.a<r4>, e0> {
                    public static ChangeQuickRedirect changeQuickRedirect;
                    public final w1 s;
                    public final Context t;

                    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u0002\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "T", "Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
                    public static final class C0298a extends p implements a<e0> {
                        public static ChangeQuickRedirect changeQuickRedirect;
                        public final w1 s;
                        public final Context t;
                        public final com.wifitutu.link.foundation.kernel.a u;

                        public C0298a(w1 w1Var, Context context, com.wifitutu.link.foundation.kernel.a aVar) {
                            super(0);
                            this.s = w1Var;
                            this.t = context;
                            this.u = aVar;
                        }

                        @Override
                        public e0 invoke() {
                            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15636, new Class[0], Object.class);
                            if (proxy.isSupported) {
                                return proxy.result;
                            }
                            invoke2();
                            return e0.a;
                        }

                        public final void invoke2() {
                            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15635, new Class[0], Void.TYPE).isSupported) {
                                return;
                            }
                            w1 w1Var = this.s;
                            Context context = this.t;
                            w1Var.b(context, new Intent(context, (Class<?>) Notification.class), g0.b(Notification.class));
                            com.wifitutu.link.foundation.kernel.c.c(this.u);
                        }
                    }

                    public C0297a(w1 w1Var, Context context) {
                        super(1);
                        this.s = w1Var;
                        this.t = context;
                    }

                    public final void a(com.wifitutu.link.foundation.kernel.a<r4> aVar) {
                        boolean z = false;
                        if (PatchProxy.proxy(new Object[]{aVar}, this, changeQuickRedirect, false, 15633, new Class[]{com.wifitutu.link.foundation.kernel.a.class}, Void.TYPE).isSupported) {
                            return;
                        }
                        w1 w1Var = this.s;
                        String m = g0.b(Notification.class).m();
                        n.f(m);
                        if (!w1Var.h(m)) {
                            w1 w1Var2 = this.s;
                            Context context = this.t;
                            w1Var2.b(context, new Intent(context, (Class<?>) Notification.class), g0.b(Notification.class));
                            com.wifitutu.link.foundation.kernel.c.c(aVar);
                            return;
                        }
                        w1 w1Var3 = this.s;
                        if (ih0.d.i(g0.b(Notification.class), g0.b(InterfaceC3060r1.class))) {
                            String m2 = g0.b(Notification.class).m();
                            n.f(m2);
                            z = w1Var3.e(m2);
                        }
                        if (z) {
                            com.wifitutu.link.foundation.kernel.c.c(aVar);
                            return;
                        }
                        w1 w1Var4 = this.s;
                        String m3 = g0.b(Notification.class).m();
                        n.f(m3);
                        w1Var4.c(m3);
                        w1 w1Var5 = this.s;
                        String m4 = g0.b(Notification.class).m();
                        n.f(m4);
                        com.wifitutu.link.foundation.kernel.c.F(w1Var5.d(m4), null, new C0298a(this.s, this.t, aVar), 1, null);
                    }

                    @Override
                    public e0 invoke(com.wifitutu.link.foundation.kernel.a<r4> aVar) {
                        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{aVar}, this, changeQuickRedirect, false, 15634, new Class[]{Object.class}, Object.class);
                        if (proxy.isSupported) {
                            return proxy.result;
                        }
                        a(aVar);
                        return e0.a;
                    }
                }

                public C0296a() {
                    super(0);
                }

                @Override
                public e0 invoke() {
                    PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15632, new Class[0], Object.class);
                    if (proxy.isSupported) {
                        return proxy.result;
                    }
                    invoke2();
                    return e0.a;
                }

                public final void invoke2() {
                    if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15631, new Class[0], Void.TYPE).isSupported || Notification.e.isEmpty()) {
                        return;
                    }
                    Notification.f = (b) x.w0(Notification.e);
                    Notification.e.clear();
                }
            }

            public b() {
                super(1);
            }

            public final void a(t3 t3Var) {
                if (PatchProxy.proxy(new Object[]{t3Var}, this, changeQuickRedirect, false, 15629, new Class[]{t3.class}, Void.TYPE).isSupported) {
                    return;
                }
                d6.b(Notification.e, C0296a.s);
            }

            @Override
            public e0 invoke(t3 t3Var) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{t3Var}, this, changeQuickRedirect, false, 15630, new Class[]{Object.class}, Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                a(t3Var);
                return e0.a;
            }
        }

        public Companion() {
        }

        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final void a(int id, android.app.Notification noti) {
            if (PatchProxy.proxy(new Object[]{new Integer(id), noti}, this, changeQuickRedirect, false, 15626, new Class[]{Integer.TYPE, android.app.Notification.class}, Void.TYPE).isSupported) {
                return;
            }
            d6.b(Notification.e, new C0295a(id, noti));
            a.a aVar = uj0.a.b;
            q6.d(uj0.c.p(1, uj0.d.e), false, false, b.s, 6, null);
        }
    }

    @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\b\b\u0082\b\u0018\u00002\u00020\u0001B\u001b\u0012\n\u0010\u0004\u001a\u00060\u0002j\u0002`\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0004\b\u0007\u0010\bJ\u0010\u0010\n\u001a\u00020\tHÖ\u0001¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\f\u001a\u00020\u0002HÖ\u0001¢\u0006\u0004\b\f\u0010\rJ\u001a\u0010\u0010\u001a\u00020\u000f2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0001HÖ\u0003¢\u0006\u0004\b\u0010\u0010\u0011R\u001b\u0010\u0004\u001a\u00060\u0002j\u0002`\u00038\u0006¢\u0006\f\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0012\u0010\rR\u0017\u0010\u0006\u001a\u00020\u00058\u0006¢\u0006\f\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0014\u0010\u0016¨\u0006\u0017"}, d2 = {"Lcom/wifitutu/link/foundation/sdk/service/Notification$b;", "", "", "Lcom/wifitutu/link/foundation/core/PushTranscationId;", "id", "Landroid/app/Notification;", "noti", "<init>", "(ILandroid/app/Notification;)V", "", "toString", "()Ljava/lang/String;", "hashCode", "()I", "other", "", "equals", "(Ljava/lang/Object;)Z", "a", "I", "b", "Landroid/app/Notification;", "()Landroid/app/Notification;", "foundation-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class b {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final int id;

        public final android.app.Notification noti;

        public b(int i, android.app.Notification notification) {
            this.id = i;
            this.noti = notification;
        }

        public final int getId() {
            return this.id;
        }

        public final android.app.Notification getNoti() {
            return this.noti;
        }

        public boolean equals(Object other) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{other}, this, changeQuickRedirect, false, 15641, new Class[]{Object.class}, Boolean.TYPE);
            if (proxy.isSupported) {
                return ((Boolean) proxy.result).booleanValue();
            }
            if (this == other) {
                return true;
            }
            if (!(other instanceof b)) {
                return false;
            }
            b bVar = (b) other;
            return this.id == bVar.id && n.d(this.noti, bVar.noti);
        }

        public int hashCode() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15640, new Class[0], Integer.TYPE);
            return proxy.isSupported ? ((Integer) proxy.result).intValue() : (this.id * 31) + this.noti.hashCode();
        }

        public String toString() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15639, new Class[0], String.class);
            if (proxy.isSupported) {
                return (String) proxy.result;
            }
            return "Data(id=" + this.id + ", noti=" + this.noti + ')';
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class c extends p implements ah0.a<Object> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public static final c s = new c();

        public c() {
            super(0);
        }

        @Override
        public final Object invoke() {
            return "即将发送前台通知时,遇到了空数据的情况";
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class d extends p implements ah0.a<Object> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final b s;

        public d(b bVar) {
            super(0);
            this.s = bVar;
        }

        @Override
        public final Object invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15642, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            return "即将发送前台通知: " + this.s;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class e extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final b t;

        public e(b bVar) {
            super(0);
            this.t = bVar;
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15644, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15643, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            Notification.this.startForeground(this.t.getId(), this.t.getNoti());
        }
    }

    @Override
    public void onCreate() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15625, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onCreate();
        b bVar = f;
        if (bVar == null) {
            h4.l().a(v0.b(), c.s);
            stopSelf();
        } else {
            n.f(bVar);
            f = null;
            h4.l().y(v0.b(), new d(bVar));
            d6.k(new e(bVar));
        }
    }
}