导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - InboxActivity.java 源代码

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

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


package com.moengage.inbox.ui.view;

import Ai.p;
import Ie.b;
import Je.t;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.C0907a;
import androidx.fragment.app.j0;
import dh.AbstractC1221b;
import ik.f;
import jh.C1832a;
import jh.C1833c;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import m.AbstractC1933a;
import mf.h;
import nf.F;
import qg.e0;
import yd.c;

@Metadata
public class InboxActivity extends AppCompatActivity {
    private F sdkInstance;
    private final String tag = "InboxUi_4.1.0_InboxActivity";

    private final void attachFragment() {
        try {
            Bundle extras = getIntent().getExtras();
            String str = "";
            String string = extras != null ? extras.getString("filter", "") : null;
            if (string != null) {
                str = string;
            }
            j0 supportFragmentManager = getSupportFragmentManager();
            supportFragmentManager.getClass();
            C0907a c0907a = new C0907a(supportFragmentManager);
            int i10 = AbstractC1221b.moeInboxFragmentFrameLayout;
            C1832a c1832a = C1833c.Companion;
            F f10 = this.sdkInstance;
            if (f10 == null) {
                Intrinsics.m("sdkInstance");
                throw null;
            }
            String str2 = f10.a.a;
            c1832a.getClass();
            c0907a.g(i10, C1832a.a(str2, str), "inboxFragment");
            c0907a.j();
        } catch (Exception e4) {
            c cVar = h.c;
            p.P(1, e4, (e0) null, new f(this, 11), 4);
        }
    }

    public void onCreate(Bundle bundle) {
        F c5;
        super.onCreate(bundle);
        setContentView(dh.c.moe_activity_inbox);
        View findViewById = findViewById(AbstractC1221b.moeToolbar);
        Intrinsics.checkNotNullExpressionValue(findViewById, "findViewById(...)");
        setSupportActionBar((Toolbar) findViewById);
        AbstractC1933a supportActionBar = getSupportActionBar();
        if (supportActionBar != null) {
            supportActionBar.q();
        }
        AbstractC1933a supportActionBar2 = getSupportActionBar();
        if (supportActionBar2 != null) {
            supportActionBar2.o(true);
        }
        Bundle extras = getIntent().getExtras();
        String string = extras != null ? extras.getString("moe_app_id", "") : null;
        String str = string != null ? string : "";
        if (StringsKt.H(str)) {
            c5 = t.c;
            if (c5 == null) {
                throw new b("Either pass instance Id or initialise default Instance");
            }
        } else {
            c5 = t.c(str);
            if (c5 == null) {
                throw new b("SDK not initialised with given App-id");
            }
        }
        this.sdkInstance = c5;
        attachFragment();
    }

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