导航菜单

页面标题

页面副标题

Dostt v1.0.89 - MoEDebuggerActivity.java 源代码

正在查看: Dostt v1.0.89 应用的 MoEDebuggerActivity.java JAVA 源代码文件

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


package com.moengage.sdk.debugger;

import Bc.h;
import Cc.y;
import Hc.DebuggerLogConfig;
import Sh.J;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.widget.AppCompatButton;
import androidx.lifecycle.N;
import androidx.lifecycle.v;
import com.moengage.sdk.debugger.MoEDebuggerActivity;
import gi.l;
import java.util.HashMap;
import java.util.TimeZone;
import jd.AbstractC1663d;
import jd.m;
import kotlin.Metadata;
import kotlin.jvm.internal.AbstractC1735t;
import kotlin.jvm.internal.r;
import ye.AbstractC2156b;
import ze.C2178a;
import ze.EnumC2179b;

@Metadata(d1 = {"\u0000\u0080\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J\u000f\u0010\u0006\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0006\u0010\u0003J\u000f\u0010\u0007\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\u0003J\u0017\u0010\n\u001a\u00020\u00042\u0006\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u001f\u0010\u0010\u001a\u00020\u00042\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\u000eH\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u0019\u0010\u0014\u001a\u00020\u00042\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0014¢\u0006\u0004\b\u0014\u0010\u0015J\u0017\u0010\u0019\u001a\u00020\u00182\u0006\u0010\u0017\u001a\u00020\u0016H\u0016¢\u0006\u0004\b\u0019\u0010\u001aJ\u0017\u0010\u001d\u001a\u00020\u00182\u0006\u0010\u001c\u001a\u00020\u001bH\u0016¢\u0006\u0004\b\u001d\u0010\u001eR\u0014\u0010!\u001a\u00020\f8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u001f\u0010 R\u0016\u0010%\u001a\u00020\"8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b#\u0010$R\u0016\u0010)\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b'\u0010(R\u0016\u0010-\u001a\u00020*8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b+\u0010,R\u0016\u0010/\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b.\u0010(R\u0016\u00101\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b0\u0010(R\u0016\u00103\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b2\u0010(R\u0016\u00107\u001a\u0002048\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b5\u00106R\u0016\u00109\u001a\u0002048\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b8\u00106R\u0016\u0010;\u001a\u0002048\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b:\u00106R\u0016\u0010=\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b<\u0010(R\u0016\u0010?\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b>\u0010(R\u0016\u0010A\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b@\u0010(R\u0016\u0010C\u001a\u00020&8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bB\u0010(R\u0016\u0010G\u001a\u00020D8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bE\u0010FR\u0016\u0010K\u001a\u00020H8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bI\u0010JR\u0016\u0010O\u001a\u00020L8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\bM\u0010N¨\u0006P"}, d2 = {"Lcom/moengage/sdk/debugger/MoEDebuggerActivity;", "Landroidx/appcompat/app/d;", "<init>", "()V", "LSh/J;", "p0", "t0", "o0", "Lze/b;", "debuggerStatus", "z0", "(Lze/b;)V", "", "message", "Lze/c;", "messageType", "y0", "(Ljava/lang/String;Lze/c;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Landroid/view/Menu;", "menu", "", "onCreateOptionsMenu", "(Landroid/view/Menu;)Z", "Landroid/view/MenuItem;", "item", "onOptionsItemSelected", "(Landroid/view/MenuItem;)Z", "a", "Ljava/lang/String;", "tag", "Landroid/widget/ProgressBar;", "b", "Landroid/widget/ProgressBar;", "progressBarView", "Landroid/widget/TextView;", "c", "Landroid/widget/TextView;", "errorMessageView", "Landroid/widget/LinearLayout;", "d", "Landroid/widget/LinearLayout;", "infoSectionView", "e", "logLevelView", "f", "startTimeView", "o", "endTimeView", "Landroidx/appcompat/widget/AppCompatButton;", "p", "Landroidx/appcompat/widget/AppCompatButton;", "extendDebuggerTimeView", "q", "stopDebuggerView", "r", "startDebuggerView", "s", "workspaceIdView", "t", "environmentView", "u", "deviceIdView", "v", "uniqueIdView", "", "w", "I", "logLevel", "LCc/y;", "x", "LCc/y;", "sdkInstance", "LCe/e;", "y", "LCe/e;", "viewModel", "sdk-debugger_defaultRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class MoEDebuggerActivity extends androidx.appcompat.app.d {

    private ProgressBar progressBarView;

    private TextView errorMessageView;

    private LinearLayout infoSectionView;

    private TextView logLevelView;

    private TextView startTimeView;

    private TextView endTimeView;

    private AppCompatButton extendDebuggerTimeView;

    private AppCompatButton stopDebuggerView;

    private AppCompatButton startDebuggerView;

    private TextView workspaceIdView;

    private TextView environmentView;

    private TextView deviceIdView;

    private TextView uniqueIdView;

    private y sdkInstance;

    private Ce.e viewModel;

    private final String tag = "SDKDebugger_1.3.0_MoEDebuggerActivity";

    private int logLevel = 5;

    public class a {
        public static final int[] a;
        public static final int[] b;

        static {
            int[] iArr = new int[EnumC2179b.values().length];
            try {
                iArr[EnumC2179b.a.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[EnumC2179b.d.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            a = iArr;
            int[] iArr2 = new int[ze.c.values().length];
            try {
                iArr2[ze.c.a.ordinal()] = 1;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr2[ze.c.b.ordinal()] = 2;
            } catch (NoSuchFieldError unused4) {
            }
            b = iArr2;
        }
    }

    static final class b extends AbstractC1735t implements gi.a {
        b() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " initStaticViewData(): ";
        }
    }

    static final class c extends AbstractC1735t implements gi.a {
        c() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " initUIElements(): ";
        }
    }

    static final class d extends AbstractC1735t implements gi.a {
        d() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " initViewModel(): ";
        }
    }

    static final class e extends AbstractC1735t implements gi.l {
        e() {
            super(1);
        }

        public final void a(EnumC2179b enumC2179b) {
            MoEDebuggerActivity moEDebuggerActivity = MoEDebuggerActivity.this;
            r.c(enumC2179b);
            moEDebuggerActivity.z0(enumC2179b);
        }

        @Override
        public Object invoke(Object obj) {
            a((EnumC2179b) obj);
            return J.a;
        }
    }

    static final class f extends AbstractC1735t implements gi.l {
        f() {
            super(1);
        }

        public final void a(String str) {
            TextView textView = MoEDebuggerActivity.this.deviceIdView;
            if (textView == null) {
                r.t("deviceIdView");
                textView = null;
            }
            textView.setText(str);
        }

        @Override
        public Object invoke(Object obj) {
            a((String) obj);
            return J.a;
        }
    }

    static final class g extends AbstractC1735t implements gi.l {
        g() {
            super(1);
        }

        public final void a(String str) {
            TextView textView = MoEDebuggerActivity.this.uniqueIdView;
            if (textView == null) {
                r.t("uniqueIdView");
                textView = null;
            }
            if (str == null) {
                str = MoEDebuggerActivity.this.getResources().getString(xe.k.c);
            }
            textView.setText(str);
        }

        @Override
        public Object invoke(Object obj) {
            a((String) obj);
            return J.a;
        }
    }

    static final class h extends AbstractC1735t implements gi.l {
        h() {
            super(1);
        }

        public final void a(DebuggerLogConfig debuggerLogConfig) {
            TextView textView = null;
            if (debuggerLogConfig.getIsLoggingEnabled()) {
                TextView textView2 = MoEDebuggerActivity.this.logLevelView;
                if (textView2 == null) {
                    r.t("logLevelView");
                    textView2 = null;
                }
                textView2.setText((CharSequence) Bc.i.a().get(Integer.valueOf(debuggerLogConfig.getLogLevel())));
                TextView textView3 = MoEDebuggerActivity.this.startTimeView;
                if (textView3 == null) {
                    r.t("startTimeView");
                    textView3 = null;
                }
                textView3.setText(m.i(debuggerLogConfig.getExpiryTime() - 7200000));
                TextView textView4 = MoEDebuggerActivity.this.endTimeView;
                if (textView4 == null) {
                    r.t("endTimeView");
                } else {
                    textView = textView4;
                }
                textView.setText(m.i(debuggerLogConfig.getExpiryTime()));
                return;
            }
            TextView textView5 = MoEDebuggerActivity.this.logLevelView;
            if (textView5 == null) {
                r.t("logLevelView");
                textView5 = null;
            }
            textView5.setText((CharSequence) Bc.i.a().get(Integer.valueOf(MoEDebuggerActivity.this.logLevel)));
            TextView textView6 = MoEDebuggerActivity.this.startTimeView;
            if (textView6 == null) {
                r.t("startTimeView");
                textView6 = null;
            }
            textView6.setText(MoEDebuggerActivity.this.getResources().getString(xe.k.c));
            TextView textView7 = MoEDebuggerActivity.this.endTimeView;
            if (textView7 == null) {
                r.t("endTimeView");
            } else {
                textView = textView7;
            }
            textView.setText(MoEDebuggerActivity.this.getResources().getString(xe.k.c));
        }

        @Override
        public Object invoke(Object obj) {
            a((DebuggerLogConfig) obj);
            return J.a;
        }
    }

    static final class i extends AbstractC1735t implements gi.a {
        i() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " onCreate(): " + MoEDebuggerActivity.this.getIntent().getData();
        }
    }

    static final class j extends AbstractC1735t implements gi.a {
        j() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " onCreate(): SDK instance not found.";
        }
    }

    static final class k extends AbstractC1735t implements gi.a {
        k() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " onCreate(): ";
        }
    }

    static final class l extends AbstractC1735t implements gi.a {
        l() {
            super(0);
        }

        @Override
        public final String invoke() {
            return MoEDebuggerActivity.this.tag + " onOptionsItemSelected(): ";
        }
    }

    private final void o0() {
        y yVar = this.sdkInstance;
        y yVar2 = null;
        if (yVar == null) {
            r.t("sdkInstance");
            yVar = null;
        }
        Bc.h.d(yVar.d, 0, null, null, new b(), 7, null);
        TextView textView = this.workspaceIdView;
        if (textView == null) {
            r.t("workspaceIdView");
            textView = null;
        }
        y yVar3 = this.sdkInstance;
        if (yVar3 == null) {
            r.t("sdkInstance");
            yVar3 = null;
        }
        textView.setText(yVar3.b().a());
        TextView textView2 = this.environmentView;
        if (textView2 == null) {
            r.t("environmentView");
            textView2 = null;
        }
        boolean R = AbstractC1663d.R(this);
        y yVar4 = this.sdkInstance;
        if (yVar4 == null) {
            r.t("sdkInstance");
        } else {
            yVar2 = yVar4;
        }
        textView2.setText(AbstractC2156b.b(R, yVar2.a().getEnvironmentConfig().getEnvironment()));
    }

    private final void p0() {
        h.a.e(Bc.h.e, 0, null, null, new c(), 7, null);
        setSupportActionBar(findViewById(xe.h.m));
        View findViewById = findViewById(xe.h.i);
        r.e(findViewById, "findViewById(...)");
        this.progressBarView = (ProgressBar) findViewById;
        View findViewById2 = findViewById(xe.h.e);
        r.e(findViewById2, "findViewById(...)");
        this.errorMessageView = (TextView) findViewById2;
        View findViewById3 = findViewById(xe.h.g);
        r.e(findViewById3, "findViewById(...)");
        this.infoSectionView = (LinearLayout) findViewById3;
        View findViewById4 = findViewById(xe.h.h);
        r.e(findViewById4, "findViewById(...)");
        this.logLevelView = (TextView) findViewById4;
        View findViewById5 = findViewById(xe.h.k);
        r.e(findViewById5, "findViewById(...)");
        this.startTimeView = (TextView) findViewById5;
        View findViewById6 = findViewById(xe.h.c);
        r.e(findViewById6, "findViewById(...)");
        this.endTimeView = (TextView) findViewById6;
        AppCompatButton findViewById7 = findViewById(xe.h.l);
        r.e(findViewById7, "findViewById(...)");
        this.stopDebuggerView = findViewById7;
        AppCompatButton findViewById8 = findViewById(xe.h.j);
        r.e(findViewById8, "findViewById(...)");
        this.startDebuggerView = findViewById8;
        AppCompatButton findViewById9 = findViewById(xe.h.f);
        r.e(findViewById9, "findViewById(...)");
        this.extendDebuggerTimeView = findViewById9;
        View findViewById10 = findViewById(xe.h.o);
        r.e(findViewById10, "findViewById(...)");
        this.workspaceIdView = (TextView) findViewById10;
        View findViewById11 = findViewById(xe.h.d);
        r.e(findViewById11, "findViewById(...)");
        this.environmentView = (TextView) findViewById11;
        View findViewById12 = findViewById(xe.h.b);
        r.e(findViewById12, "findViewById(...)");
        this.deviceIdView = (TextView) findViewById12;
        View findViewById13 = findViewById(xe.h.n);
        r.e(findViewById13, "findViewById(...)");
        this.uniqueIdView = (TextView) findViewById13;
        View view = this.startDebuggerView;
        View view2 = null;
        if (view == null) {
            r.t("startDebuggerView");
            view = null;
        }
        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view3) {
                MoEDebuggerActivity.q0(MoEDebuggerActivity.this, view3);
            }
        });
        View view3 = this.stopDebuggerView;
        if (view3 == null) {
            r.t("stopDebuggerView");
            view3 = null;
        }
        view3.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view4) {
                MoEDebuggerActivity.r0(MoEDebuggerActivity.this, view4);
            }
        });
        View view4 = this.extendDebuggerTimeView;
        if (view4 == null) {
            r.t("extendDebuggerTimeView");
        } else {
            view2 = view4;
        }
        view2.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view5) {
                MoEDebuggerActivity.s0(MoEDebuggerActivity.this, view5);
            }
        });
    }

    public static final void q0(MoEDebuggerActivity this$0, View view) {
        r.f(this$0, "this$0");
        Ce.e eVar = this$0.viewModel;
        if (eVar == null) {
            r.t("viewModel");
            eVar = null;
        }
        eVar.l(this$0.logLevel);
        String string = this$0.getResources().getString(xe.k.b);
        r.e(string, "getString(...)");
        this$0.y0(string, ze.c.a);
    }

    public static final void r0(MoEDebuggerActivity this$0, View view) {
        r.f(this$0, "this$0");
        Ce.e eVar = this$0.viewModel;
        if (eVar == null) {
            r.t("viewModel");
            eVar = null;
        }
        eVar.j();
        String string = this$0.getResources().getString(xe.k.a);
        r.e(string, "getString(...)");
        this$0.y0(string, ze.c.a);
    }

    public static final void s0(MoEDebuggerActivity this$0, View view) {
        r.f(this$0, "this$0");
        Ce.e eVar = this$0.viewModel;
        if (eVar == null) {
            r.t("viewModel");
            eVar = null;
        }
        eVar.u(this$0.logLevel);
        String string = this$0.getResources().getString(xe.k.f);
        r.e(string, "getString(...)");
        this$0.y0(string, ze.c.a);
    }

    private final void t0() {
        y yVar = this.sdkInstance;
        Ce.e eVar = null;
        if (yVar == null) {
            r.t("sdkInstance");
            yVar = null;
        }
        Bc.h.d(yVar.d, 0, null, null, new d(), 7, null);
        int i2 = this.logLevel;
        y yVar2 = this.sdkInstance;
        if (yVar2 == null) {
            r.t("sdkInstance");
            yVar2 = null;
        }
        Ce.e eVar2 = (Ce.e) new N(this, new Ce.f(i2, yVar2, this)).a(Ce.e.class);
        this.viewModel = eVar2;
        if (eVar2 == null) {
            r.t("viewModel");
            eVar2 = null;
        }
        androidx.lifecycle.r p = eVar2.p();
        final e eVar3 = new e();
        p.i(this, new v() {
            public final void b(Object obj) {
                MoEDebuggerActivity.u0(l.this, obj);
            }
        });
        Ce.e eVar4 = this.viewModel;
        if (eVar4 == null) {
            r.t("viewModel");
            eVar4 = null;
        }
        androidx.lifecycle.r q = eVar4.q();
        final f fVar = new f();
        q.i(this, new v() {
            public final void b(Object obj) {
                MoEDebuggerActivity.v0(l.this, obj);
            }
        });
        Ce.e eVar5 = this.viewModel;
        if (eVar5 == null) {
            r.t("viewModel");
            eVar5 = null;
        }
        androidx.lifecycle.r r = eVar5.r();
        final g gVar = new g();
        r.i(this, new v() {
            public final void b(Object obj) {
                MoEDebuggerActivity.w0(l.this, obj);
            }
        });
        Ce.e eVar6 = this.viewModel;
        if (eVar6 == null) {
            r.t("viewModel");
        } else {
            eVar = eVar6;
        }
        androidx.lifecycle.r o = eVar.o();
        final h hVar = new h();
        o.i(this, new v() {
            public final void b(Object obj) {
                MoEDebuggerActivity.x0(l.this, obj);
            }
        });
    }

    public static final void u0(gi.l tmp0, Object obj) {
        r.f(tmp0, "$tmp0");
        tmp0.invoke(obj);
    }

    public static final void v0(gi.l tmp0, Object obj) {
        r.f(tmp0, "$tmp0");
        tmp0.invoke(obj);
    }

    public static final void w0(gi.l tmp0, Object obj) {
        r.f(tmp0, "$tmp0");
        tmp0.invoke(obj);
    }

    public static final void x0(gi.l tmp0, Object obj) {
        r.f(tmp0, "$tmp0");
        tmp0.invoke(obj);
    }

    private final void y0(String message, ze.c messageType) {
        int i2 = a.b[messageType.ordinal()];
        if (i2 == 1) {
            Toast.makeText((Context) this, (CharSequence) message, 1).show();
            return;
        }
        if (i2 != 2) {
            return;
        }
        TextView textView = this.errorMessageView;
        LinearLayout linearLayout = null;
        if (textView == null) {
            r.t("errorMessageView");
            textView = null;
        }
        textView.setText(message);
        TextView textView2 = this.errorMessageView;
        if (textView2 == null) {
            r.t("errorMessageView");
            textView2 = null;
        }
        textView2.setVisibility(0);
        ProgressBar progressBar = this.progressBarView;
        if (progressBar == null) {
            r.t("progressBarView");
            progressBar = null;
        }
        progressBar.setVisibility(8);
        LinearLayout linearLayout2 = this.infoSectionView;
        if (linearLayout2 == null) {
            r.t("infoSectionView");
        } else {
            linearLayout = linearLayout2;
        }
        linearLayout.setVisibility(8);
    }

    public final void z0(EnumC2179b debuggerStatus) {
        int i2 = a.a[debuggerStatus.ordinal()];
        View view = null;
        if (i2 == 1) {
            ProgressBar progressBar = this.progressBarView;
            if (progressBar == null) {
                r.t("progressBarView");
                progressBar = null;
            }
            progressBar.setVisibility(0);
            TextView textView = this.errorMessageView;
            if (textView == null) {
                r.t("errorMessageView");
                textView = null;
            }
            textView.setVisibility(8);
            View view2 = this.infoSectionView;
            if (view2 == null) {
                r.t("infoSectionView");
            } else {
                view = view2;
            }
            view.setVisibility(8);
            return;
        }
        if (i2 == 2) {
            ProgressBar progressBar2 = this.progressBarView;
            if (progressBar2 == null) {
                r.t("progressBarView");
                progressBar2 = null;
            }
            progressBar2.setVisibility(8);
            TextView textView2 = this.errorMessageView;
            if (textView2 == null) {
                r.t("errorMessageView");
                textView2 = null;
            }
            textView2.setVisibility(0);
            View view3 = this.infoSectionView;
            if (view3 == null) {
                r.t("infoSectionView");
            } else {
                view = view3;
            }
            view.setVisibility(8);
            return;
        }
        ProgressBar progressBar3 = this.progressBarView;
        if (progressBar3 == null) {
            r.t("progressBarView");
            progressBar3 = null;
        }
        progressBar3.setVisibility(8);
        TextView textView3 = this.errorMessageView;
        if (textView3 == null) {
            r.t("errorMessageView");
            textView3 = null;
        }
        textView3.setVisibility(8);
        LinearLayout linearLayout = this.infoSectionView;
        if (linearLayout == null) {
            r.t("infoSectionView");
            linearLayout = null;
        }
        linearLayout.setVisibility(0);
        if (debuggerStatus == EnumC2179b.b) {
            View view4 = this.startDebuggerView;
            if (view4 == null) {
                r.t("startDebuggerView");
                view4 = null;
            }
            view4.setVisibility(8);
            View view5 = this.stopDebuggerView;
            if (view5 == null) {
                r.t("stopDebuggerView");
                view5 = null;
            }
            view5.setVisibility(0);
            View view6 = this.extendDebuggerTimeView;
            if (view6 == null) {
                r.t("extendDebuggerTimeView");
            } else {
                view = view6;
            }
            view.setVisibility(0);
            return;
        }
        View view7 = this.startDebuggerView;
        if (view7 == null) {
            r.t("startDebuggerView");
            view7 = null;
        }
        view7.setVisibility(0);
        View view8 = this.stopDebuggerView;
        if (view8 == null) {
            r.t("stopDebuggerView");
            view8 = null;
        }
        view8.setVisibility(8);
        View view9 = this.extendDebuggerTimeView;
        if (view9 == null) {
            r.t("extendDebuggerTimeView");
        } else {
            view = view9;
        }
        view.setVisibility(8);
    }

    protected void onCreate(Bundle savedInstanceState) {
        super/*androidx.fragment.app.t*/.onCreate(savedInstanceState);
        try {
            h.a aVar = Bc.h.e;
            h.a.e(aVar, 0, null, null, new i(), 7, null);
            setContentView(xe.i.a);
            p0();
            y c2 = AbstractC2156b.c(getIntent().getExtras());
            if (c2 == null) {
                h.a.e(aVar, 0, null, null, new j(), 7, null);
                String string = getResources().getString(xe.k.h);
                r.e(string, "getString(...)");
                y0(string, ze.c.b);
                return;
            }
            this.sdkInstance = c2;
            HashMap b2 = Bc.i.b();
            Bundle extras = getIntent().getExtras();
            Integer num = (Integer) b2.get(extras != null ? extras.getString("logLevel") : null);
            this.logLevel = num != null ? num.intValue() : 5;
            o0();
            t0();
        } catch (Throwable th2) {
            if (th2 instanceof UnsupportedOperationException) {
                String string2 = getResources().getString(xe.k.g);
                r.e(string2, "getString(...)");
                y0(string2, ze.c.b);
            }
            h.a.e(Bc.h.e, 1, th2, null, new k(), 4, null);
        }
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        r.f(menu, "menu");
        getMenuInflater().inflate(xe.j.a, menu);
        return true;
    }

    public boolean onOptionsItemSelected(MenuItem item) {
        r.f(item, "item");
        y yVar = null;
        try {
            if (item.getItemId() != xe.h.a) {
                return super/*android.app.Activity*/.onOptionsItemSelected(item);
            }
            if (this.sdkInstance == null) {
                String string = getResources().getString(xe.k.d);
                r.e(string, "getString(...)");
                y0(string, ze.c.a);
            } else {
                String string2 = getResources().getString(xe.k.e);
                r.e(string2, "getString(...)");
                Ce.e eVar = this.viewModel;
                if (eVar == null) {
                    r.t("viewModel");
                    eVar = null;
                }
                EnumC2179b enumC2179b = (EnumC2179b) eVar.p().f();
                if (enumC2179b == null) {
                    enumC2179b = EnumC2179b.a;
                }
                EnumC2179b enumC2179b2 = enumC2179b;
                r.c(enumC2179b2);
                TextView textView = this.logLevelView;
                if (textView == null) {
                    r.t("logLevelView");
                    textView = null;
                }
                String obj = textView.getText().toString();
                TextView textView2 = this.startTimeView;
                if (textView2 == null) {
                    r.t("startTimeView");
                    textView2 = null;
                }
                String obj2 = textView2.getText().toString();
                TextView textView3 = this.endTimeView;
                if (textView3 == null) {
                    r.t("endTimeView");
                    textView3 = null;
                }
                String obj3 = textView3.getText().toString();
                TextView textView4 = this.workspaceIdView;
                if (textView4 == null) {
                    r.t("workspaceIdView");
                    textView4 = null;
                }
                String obj4 = textView4.getText().toString();
                TextView textView5 = this.environmentView;
                if (textView5 == null) {
                    r.t("environmentView");
                    textView5 = null;
                }
                String obj5 = textView5.getText().toString();
                TextView textView6 = this.deviceIdView;
                if (textView6 == null) {
                    r.t("deviceIdView");
                    textView6 = null;
                }
                String obj6 = textView6.getText().toString();
                TextView textView7 = this.uniqueIdView;
                if (textView7 == null) {
                    r.t("uniqueIdView");
                    textView7 = null;
                }
                String obj7 = textView7.getText().toString();
                TimeZone timeZone = TimeZone.getDefault();
                r.e(timeZone, "getDefault(...)");
                AbstractC2156b.e(this, new C2178a(string2, enumC2179b2, obj, obj2, obj3, obj4, obj5, obj6, obj7, AbstractC2156b.d(timeZone, m.b())));
            }
            return true;
        } catch (Throwable th2) {
            y yVar2 = this.sdkInstance;
            if (yVar2 == null) {
                r.t("sdkInstance");
            } else {
                yVar = yVar2;
            }
            Bc.h.d(yVar.d, 1, th2, null, new l(), 4, null);
            return super/*android.app.Activity*/.onOptionsItemSelected(item);
        }
    }
}