导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - CardActivity.java 源代码

正在查看: Bhakti v5.4.0 应用的 CardActivity.java JAVA 源代码文件

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


package com.moengage.cards.ui;

import Je.t;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.C0907a;
import androidx.fragment.app.j0;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import m.AbstractC1933a;
import mf.h;
import nf.F;
import te.C2430a;
import te.C2431b;
import te.e;
import te.n;
import te.o;

@Metadata
public final class CardActivity extends AppCompatActivity {
    private F sdkInstance;
    private final String tag = "CardsUI_3.0.0_CardActivity";

    public void onCreate(Bundle bundle) {
        F c5;
        super.onCreate(bundle);
        setContentView(o.moe_activity_card);
        Bundle extras = getIntent().getExtras();
        String string = extras != null ? extras.getString("moe_app_id", "") : null;
        String str = string != null ? string : "";
        if (str.length() == 0) {
            c5 = t.c;
            if (c5 == null) {
                throw new IllegalStateException("Either pass instance Id or initialise default Instance");
            }
        } else {
            c5 = t.c(str);
            if (c5 == null) {
                throw new IllegalStateException("SDK not initialised with given App-id");
            }
        }
        this.sdkInstance = c5;
        h.a(c5.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 0), 7);
        setSupportActionBar((Toolbar) findViewById(n.toolbar));
        AbstractC1933a supportActionBar = getSupportActionBar();
        if (supportActionBar != null) {
            supportActionBar.q();
        }
        AbstractC1933a supportActionBar2 = getSupportActionBar();
        if (supportActionBar2 != null) {
            supportActionBar2.o(true);
        }
        j0 supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.getClass();
        C0907a c0907a = new C0907a(supportFragmentManager);
        int i10 = n.feedFragment;
        C2431b c2431b = e.Companion;
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        nf.t tVar = f10.a;
        c2431b.getClass();
        String str2 = tVar.a;
        Intrinsics.checkNotNullParameter(str2, "appId");
        e eVar = new e();
        Bundle bundle2 = new Bundle();
        bundle2.putString("moe_app_id", str2);
        eVar.setArguments(bundle2);
        c0907a.g(i10, eVar, null);
        c0907a.j();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 1), 7);
    }

    public void onPause() {
        super.onPause();
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 2), 7);
    }

    public void onRestoreInstanceState(Bundle bundle) {
        Intrinsics.checkNotNullParameter(bundle, "savedInstanceState");
        super/*android.app.Activity*/.onRestoreInstanceState(bundle);
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 3), 7);
    }

    public void onResume() {
        super.onResume();
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 4), 7);
    }

    public void onSaveInstanceState(Bundle bundle) {
        Intrinsics.checkNotNullParameter(bundle, "outState");
        super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(bundle);
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 5), 7);
    }

    @Override
    public void onStart() {
        super.onStart();
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 6), 7);
    }

    @Override
    public void onStop() {
        super.onStop();
        F f10 = this.sdkInstance;
        if (f10 == null) {
            Intrinsics.m("sdkInstance");
            throw null;
        }
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new C2430a(this, 7), 7);
    }

    @Override
    public boolean onSupportNavigateUp() {
        onBackPressed();
        return true;
    }
}