导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - MandatoryPermissionsActivity.java 源代码

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

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


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

import B5.e;
import D3.s;
import E3.h;
import Ec.i;
import J3.C0296m;
import Jk.b;
import Lk.c;
import O9.t;
import ai.d0;
import android.app.KeyguardManager;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.lifecycle.r0;
import d.C1801l0;
import d.KeyguardManagerKeyguardDismissCallbackC1797j0;
import gm.j;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import t.C4067d;

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

    public static MandatoryPermissionsActivity f19504r0;

    public static Function0 f19505s0 = new d0(27);

    public static Function0 f19506t0 = new d0(28);

    public static boolean f19507u0;

    public C4067d f19509Y;

    public String f19510Z;

    public i f19511x;

    public volatile b f19512y;

    public final Object f19513z = new Object();

    public boolean f19508X = false;

    public MandatoryPermissionsActivity() {
        addOnContextAvailableListener(new C0296m(this, 3));
        this.f19510Z = "";
    }

    public final Object a() {
        return e().a();
    }

    public final b e() {
        if (this.f19512y == null) {
            synchronized (this.f19513z) {
                try {
                    if (this.f19512y == null) {
                        this.f19512y = new b(this);
                    }
                } finally {
                }
            }
        }
        return this.f19512y;
    }

    public final void f(Bundle bundle) {
        super.onCreate(bundle);
        if (getApplication() instanceof Lk.b) {
            i c10 = e().c();
            this.f19511x = c10;
            if (c10.u()) {
                this.f19511x.w = getDefaultViewModelCreationExtras();
            }
        }
    }

    public final void g() {
        super.onDestroy();
        i iVar = this.f19511x;
        if (iVar != null) {
            iVar.w = null;
        }
    }

    @Override
    public final r0 getDefaultViewModelProviderFactory() {
        return t.x(this, super.getDefaultViewModelProviderFactory());
    }

    @Override
    public final void onCreate(Bundle bundle) {
        Bundle extras;
        String string;
        Bundle extras2;
        String string2;
        Bundle extras3;
        String string3;
        s.a(this);
        f(bundle);
        f19504r0 = this;
        Intent intent = getIntent();
        String str = (intent == null || (extras3 = intent.getExtras()) == null || (string3 = extras3.getString("permission")) == null) ? "" : string3;
        Intent intent2 = getIntent();
        String str2 = (intent2 == null || (extras2 = intent2.getExtras()) == null || (string2 = extras2.getString("permission_rationale")) == null) ? "" : string2;
        Intent intent3 = getIntent();
        String str3 = (intent3 == null || (extras = intent3.getExtras()) == null || (string = extras.getString("open_app_settings_permission_rationale")) == null) ? "" : string;
        this.f19510Z = str;
        if (j.b0(str) || j.b0(str2) || j.b0(str3)) {
            finish();
        }
        h.a(this, new e(new C1801l0(str, str2, str3, this, 1), true, 499819031));
        KeyguardManager keyguardManager = (KeyguardManager) getSystemService(KeyguardManager.class);
        if (keyguardManager != null && keyguardManager.isKeyguardLocked()) {
            keyguardManager.requestDismissKeyguard(this, new KeyguardManagerKeyguardDismissCallbackC1797j0(1));
        }
    }

    @Override
    public final void onDestroy() {
        g();
        f19504r0 = null;
    }
}