导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - UserDeviceDetailsActivity.java 源代码

正在查看: Uptodown App Store v6.80 应用的 UserDeviceDetailsActivity.java JAVA 源代码文件

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


package com.uptodown.activities;

import N1.k;
import S2.AbstractC0525o;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.activity.OnBackPressedCallback;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwnerKt;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.viewmodel.CreationExtras;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import b2.C0561j;
import c2.C0608u;
import c2.T0;
import com.uptodown.UptodownApp;
import com.uptodown.activities.UserDeviceDetailsActivity;
import com.uptodown.activities.Z;
import f2.InterfaceC0919b;
import f2.InterfaceC0934q;
import g2.C0955f;
import g2.C0964o;
import g2.T;
import java.util.ArrayList;
import java.util.Comparator;
import kotlin.jvm.internal.AbstractC1009g;
import u2.H;

public final class UserDeviceDetailsActivity extends AbstractC0740a {
    public static final a P = new a(null);
    private M1.O L;
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.T0 q3;
            q3 = UserDeviceDetailsActivity.q3(UserDeviceDetailsActivity.this);
            return q3;
        }
    });
    private final R2.g K = new ViewModelLazy(kotlin.jvm.internal.D.b(Z.class), new o(this), new n(this), new p(null, this));
    private final b M = new b();
    private final j N = new j();
    private final i O = new i();

    public static final class a {
        public a(AbstractC1009g abstractC1009g) {
            this();
        }

        private a() {
        }
    }

    public static final class b implements InterfaceC0919b {
        b() {
        }

        @Override
        public void a(int i) {
            if (UserDeviceDetailsActivity.this.L != null) {
                M1.O o = UserDeviceDetailsActivity.this.L;
                kotlin.jvm.internal.m.b(o);
                String d = ((T.c) o.a().get(i)).d();
                if (d == null || d.length() == 0) {
                    return;
                }
                ?? r12 = UserDeviceDetailsActivity.this;
                M1.O o3 = ((UserDeviceDetailsActivity) r12).L;
                kotlin.jvm.internal.m.b(o3);
                String d4 = ((T.c) o3.a().get(i)).d();
                kotlin.jvm.internal.m.b(d4);
                new C0561j(r12, d4, UserDeviceDetailsActivity.this.O, LifecycleOwnerKt.getLifecycleScope(UserDeviceDetailsActivity.this));
            }
        }

        @Override
        public void b(int i) {
        }
    }

    public static final class c implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj).b()), Long.valueOf(((T.c) obj2).b()));
        }
    }

    public static final class d implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj).b()), Long.valueOf(((T.c) obj2).b()));
        }
    }

    public static final class e implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj2).b()), Long.valueOf(((T.c) obj).b()));
        }
    }

    public static final class f implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj2).b()), Long.valueOf(((T.c) obj).b()));
        }
    }

    public static final class g implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj).b()), Long.valueOf(((T.c) obj2).b()));
        }
    }

    public static final class h implements Comparator {
        @Override
        public final int compare(Object obj, Object obj2) {
            return U2.a.a(Long.valueOf(((T.c) obj2).b()), Long.valueOf(((T.c) obj).b()));
        }
    }

    public static final class i implements InterfaceC0934q {
        i() {
        }

        @Override
        public void c(int i) {
            ?? r3 = UserDeviceDetailsActivity.this;
            String string = r3.getString(2131952291);
            kotlin.jvm.internal.m.d(string, "getString(...)");
            r3.r0(string);
        }

        @Override
        public void d(C0955f appInfo) {
            kotlin.jvm.internal.m.e(appInfo, "appInfo");
            if (UserDeviceDetailsActivity.this.isFinishing()) {
                return;
            }
            Intent intent = new Intent((Context) UserDeviceDetailsActivity.this, (Class<?>) AppDetailActivity.class);
            intent.putExtra("appInfo", appInfo);
            AppCompatActivity appCompatActivity = UserDeviceDetailsActivity.this;
            appCompatActivity.startActivity(intent, UptodownApp.F.a(appCompatActivity));
        }
    }

    public static final class j extends OnBackPressedCallback {
        j() {
            super(true);
        }

        public void handleOnBackPressed() {
            UserDeviceDetailsActivity.this.finish();
        }
    }

    static final class k extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;

        static final class a implements r3.f {
            final UserDeviceDetailsActivity a;

            a(UserDeviceDetailsActivity userDeviceDetailsActivity) {
                this.a = userDeviceDetailsActivity;
            }

            public final Object emit(u2.H h, V2.d dVar) {
                if (kotlin.jvm.internal.m.a(h, H.a.a)) {
                    this.a.x3().f.setVisibility(0);
                } else if (h instanceof H.c) {
                    this.a.v3(((Z.a) ((H.c) h).a()).a());
                    this.a.x3().f.setVisibility(8);
                    this.a.x3().e.setVisibility(0);
                } else if (!kotlin.jvm.internal.m.a(h, H.b.a)) {
                    throw new R2.k();
                }
                return R2.s.a;
            }
        }

        k(V2.d dVar) {
            super(2, dVar);
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return UserDeviceDetailsActivity.this.new k(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                r3.I e = UserDeviceDetailsActivity.this.y3().e();
                a aVar = new a(UserDeviceDetailsActivity.this);
                this.a = 1;
                if (e.collect(aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
            }
            throw new R2.d();
        }

        @Override
        public final Object invoke(o3.J j, V2.d dVar) {
            return ((k) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    static final class l extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;

        static final class a implements r3.f {
            final UserDeviceDetailsActivity a;

            a(UserDeviceDetailsActivity userDeviceDetailsActivity) {
                this.a = userDeviceDetailsActivity;
            }

            public final Object emit(u2.H h, V2.d dVar) {
                if (!kotlin.jvm.internal.m.a(h, H.a.a)) {
                    if (h instanceof H.c) {
                        H.c cVar = (H.c) h;
                        String a = ((Z.b) cVar.a()).a();
                        if (a != null && a.length() != 0) {
                            this.a.r0(((Z.b) cVar.a()).a());
                        }
                        if (((Z.b) cVar.a()).c() == 1) {
                            this.a.x3().o.setText(((Z.b) cVar.a()).b());
                            this.a.setResult(3);
                        }
                    } else if (!kotlin.jvm.internal.m.a(h, H.b.a)) {
                        throw new R2.k();
                    }
                }
                return R2.s.a;
            }
        }

        l(V2.d dVar) {
            super(2, dVar);
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return UserDeviceDetailsActivity.this.new l(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                r3.I f = UserDeviceDetailsActivity.this.y3().f();
                a aVar = new a(UserDeviceDetailsActivity.this);
                this.a = 1;
                if (f.collect(aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
            }
            throw new R2.d();
        }

        @Override
        public final Object invoke(o3.J j, V2.d dVar) {
            return ((l) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    static final class m extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;

        static final class a implements r3.f {
            final UserDeviceDetailsActivity a;

            a(UserDeviceDetailsActivity userDeviceDetailsActivity) {
                this.a = userDeviceDetailsActivity;
            }

            public final Object emit(u2.H h, V2.d dVar) {
                if (!kotlin.jvm.internal.m.a(h, H.a.a)) {
                    if (h instanceof H.c) {
                        H.c cVar = (H.c) h;
                        String b = ((Z.c) cVar.a()).b();
                        if (b != null && b.length() != 0) {
                            this.a.r0(((Z.c) cVar.a()).b());
                        }
                        if (((Z.c) cVar.a()).c() == 1) {
                            C0964o c0964o = new C0964o();
                            c0964o.j(this.a);
                            if (kotlin.jvm.internal.m.a(((Z.c) cVar.a()).a(), c0964o.d())) {
                                this.a.setResult(5);
                                this.a.N.handleOnBackPressed();
                            } else {
                                this.a.setResult(4);
                                this.a.N.handleOnBackPressed();
                            }
                        }
                    } else if (!kotlin.jvm.internal.m.a(h, H.b.a)) {
                        throw new R2.k();
                    }
                }
                return R2.s.a;
            }
        }

        m(V2.d dVar) {
            super(2, dVar);
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return UserDeviceDetailsActivity.this.new m(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                r3.I g = UserDeviceDetailsActivity.this.y3().g();
                a aVar = new a(UserDeviceDetailsActivity.this);
                this.a = 1;
                if (g.collect(aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
            }
            throw new R2.d();
        }

        @Override
        public final Object invoke(o3.J j, V2.d dVar) {
            return ((m) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    public static final class n extends kotlin.jvm.internal.n implements d3.a {
        final ComponentActivity a;

        public n(ComponentActivity componentActivity) {
            super(0);
            this.a = componentActivity;
        }

        @Override
        public final ViewModelProvider.Factory invoke() {
            return this.a.getDefaultViewModelProviderFactory();
        }
    }

    public static final class o extends kotlin.jvm.internal.n implements d3.a {
        final ComponentActivity a;

        public o(ComponentActivity componentActivity) {
            super(0);
            this.a = componentActivity;
        }

        @Override
        public final ViewModelStore invoke() {
            return this.a.getViewModelStore();
        }
    }

    public static final class p extends kotlin.jvm.internal.n implements d3.a {
        final d3.a a;
        final ComponentActivity b;

        public p(d3.a aVar, ComponentActivity componentActivity) {
            super(0);
            this.a = aVar;
            this.b = componentActivity;
        }

        @Override
        public final CreationExtras invoke() {
            CreationExtras creationExtras;
            d3.a aVar = this.a;
            return (aVar == null || (creationExtras = (CreationExtras) aVar.invoke()) == null) ? this.b.getDefaultViewModelCreationExtras() : creationExtras;
        }
    }

    public static final void A3(UserDeviceDetailsActivity userDeviceDetailsActivity, View view) {
        userDeviceDetailsActivity.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void B3(UserDeviceDetailsActivity userDeviceDetailsActivity, View view) {
        userDeviceDetailsActivity.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void C3(final UserDeviceDetailsActivity userDeviceDetailsActivity, final g2.T t, View view) {
        String string = userDeviceDetailsActivity.getString(2131952756);
        kotlin.jvm.internal.m.d(string, "getString(...)");
        userDeviceDetailsActivity.P1(string, new d3.a() {
            @Override
            public final Object invoke() {
                R2.s D3;
                D3 = UserDeviceDetailsActivity.D3(UserDeviceDetailsActivity.this, t);
                return D3;
            }
        });
    }

    public static final R2.s D3(UserDeviceDetailsActivity userDeviceDetailsActivity, g2.T t) {
        userDeviceDetailsActivity.y3().k(userDeviceDetailsActivity, t.b(), t.c());
        return R2.s.a;
    }

    public static final void E3(UserDeviceDetailsActivity userDeviceDetailsActivity, g2.T t, View view) {
        userDeviceDetailsActivity.r3(t);
    }

    public static final void F3(UserDeviceDetailsActivity userDeviceDetailsActivity, View view) {
        ArrayList a4;
        ArrayList a5;
        if (((Boolean) userDeviceDetailsActivity.y3().i().getValue()).booleanValue()) {
            M1.O o3 = userDeviceDetailsActivity.L;
            if (o3 != null && (a5 = o3.a()) != null && a5.size() > 1) {
                AbstractC0525o.t(a5, new g());
            }
            M1.O o4 = userDeviceDetailsActivity.L;
            if (o4 != null) {
                o4.notifyDataSetChanged();
            }
            userDeviceDetailsActivity.x3().c.animate().rotation(180.0f).setDuration(200L).start();
        } else {
            M1.O o5 = userDeviceDetailsActivity.L;
            if (o5 != null && (a4 = o5.a()) != null && a4.size() > 1) {
                AbstractC0525o.t(a4, new h());
            }
            M1.O o6 = userDeviceDetailsActivity.L;
            if (o6 != null) {
                o6.notifyDataSetChanged();
            }
            userDeviceDetailsActivity.x3().c.animate().rotation(0.0f).setDuration(200L).start();
        }
        userDeviceDetailsActivity.y3().i().setValue(Boolean.valueOf(!((Boolean) userDeviceDetailsActivity.y3().i().getValue()).booleanValue()));
        userDeviceDetailsActivity.x3().j.setAdapter(userDeviceDetailsActivity.L);
    }

    private final void G3(RadioButton radioButton) {
        radioButton.setBackground(ContextCompat.getDrawable(this, 2131231250));
        radioButton.setCompoundDrawablesWithIntrinsicBounds(ContextCompat.getDrawable(this, 2131231407), (Drawable) null, (Drawable) null, (Drawable) null);
    }

    private final void H3(RadioButton radioButton) {
        radioButton.setBackground(ContextCompat.getDrawable(this, 2131230895));
        radioButton.setCompoundDrawablesWithIntrinsicBounds((Drawable) null, (Drawable) null, (Drawable) null, (Drawable) null);
    }

    public static final T0 q3(UserDeviceDetailsActivity userDeviceDetailsActivity) {
        return T0.c(userDeviceDetailsActivity.getLayoutInflater());
    }

    private final void r3(final g2.T t) {
        if (isFinishing()) {
            return;
        }
        AlertDialog k22 = k2();
        if (k22 != null) {
            k22.dismiss();
        }
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        final C0608u c4 = C0608u.c(getLayoutInflater());
        kotlin.jvm.internal.m.d(c4, "inflate(...)");
        TextView textView = c4.e;
        k.a aVar = N1.k.g;
        textView.setTypeface(aVar.w());
        c4.d.setTypeface(aVar.w());
        c4.d.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.s3(UserDeviceDetailsActivity.this, t, c4, view);
            }
        });
        c4.c.setTypeface(aVar.w());
        c4.c.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.t3(UserDeviceDetailsActivity.this, view);
            }
        });
        builder.setView(c4.getRoot());
        K2(builder.create());
        if (isFinishing() || k2() == null) {
            return;
        }
        X2();
        c4.b.postDelayed(new Runnable() {
            @Override
            public final void run() {
                UserDeviceDetailsActivity.u3(g2.T.this, c4, this);
            }
        }, 100L);
    }

    public static final void s3(UserDeviceDetailsActivity userDeviceDetailsActivity, g2.T t, C0608u c0608u, View view) {
        userDeviceDetailsActivity.y3().j(userDeviceDetailsActivity, t.b(), c0608u.b.getText().toString());
        userDeviceDetailsActivity.j2();
    }

    public static final void t3(UserDeviceDetailsActivity userDeviceDetailsActivity, View view) {
        userDeviceDetailsActivity.j2();
    }

    public static final void u3(g2.T t, C0608u c0608u, UserDeviceDetailsActivity userDeviceDetailsActivity) {
        String g4 = t.g();
        if (g4 != null && g4.length() != 0) {
            c0608u.b.requestFocus();
            c0608u.b.setText(t.g());
            c0608u.b.selectAll();
        }
        EditText etDialogRename = c0608u.b;
        kotlin.jvm.internal.m.d(etDialogRename, "etDialogRename");
        userDeviceDetailsActivity.showKeyboard(etDialogRename);
    }

    public final void v3(final g2.T t) {
        x3().o.setText(t.g());
        x3().m.setText(t.a());
        x3().s.setText(t.f());
        if (t.k() > 0) {
            x3().d.setImageDrawable(ContextCompat.getDrawable(this, 2131231553));
        } else {
            x3().d.setImageDrawable(ContextCompat.getDrawable(this, 2131231408));
        }
        x3().i.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public final void onCheckedChanged(RadioGroup radioGroup, int i4) {
                UserDeviceDetailsActivity.w3(UserDeviceDetailsActivity.this, t, radioGroup, i4);
            }
        });
        this.L = new M1.O(t.d(), this.M);
        x3().j.setAdapter(this.L);
    }

    public static final void w3(UserDeviceDetailsActivity userDeviceDetailsActivity, g2.T t, RadioGroup radioGroup, int i4) {
        if (i4 == userDeviceDetailsActivity.x3().g.getId()) {
            if (((Boolean) userDeviceDetailsActivity.y3().i().getValue()).booleanValue()) {
                ArrayList d4 = t.d();
                if (d4.size() > 1) {
                    AbstractC0525o.t(d4, new e());
                }
            } else {
                ArrayList d5 = t.d();
                if (d5.size() > 1) {
                    AbstractC0525o.t(d5, new c());
                }
            }
            M1.O o3 = userDeviceDetailsActivity.L;
            if (o3 != null) {
                o3.d(t.d());
            }
            RadioButton rbInstalledAppsUserDeviceDetails = userDeviceDetailsActivity.x3().g;
            kotlin.jvm.internal.m.d(rbInstalledAppsUserDeviceDetails, "rbInstalledAppsUserDeviceDetails");
            userDeviceDetailsActivity.G3(rbInstalledAppsUserDeviceDetails);
            RadioButton rbNotInstalledAppsUserDeviceDetails = userDeviceDetailsActivity.x3().h;
            kotlin.jvm.internal.m.d(rbNotInstalledAppsUserDeviceDetails, "rbNotInstalledAppsUserDeviceDetails");
            userDeviceDetailsActivity.H3(rbNotInstalledAppsUserDeviceDetails);
        } else if (i4 == userDeviceDetailsActivity.x3().h.getId()) {
            if (((Boolean) userDeviceDetailsActivity.y3().i().getValue()).booleanValue()) {
                ArrayList h4 = t.h();
                if (h4.size() > 1) {
                    AbstractC0525o.t(h4, new f());
                }
            } else {
                ArrayList h5 = t.h();
                if (h5.size() > 1) {
                    AbstractC0525o.t(h5, new d());
                }
            }
            M1.O o4 = userDeviceDetailsActivity.L;
            if (o4 != null) {
                o4.d(t.h());
            }
            RadioButton rbNotInstalledAppsUserDeviceDetails2 = userDeviceDetailsActivity.x3().h;
            kotlin.jvm.internal.m.d(rbNotInstalledAppsUserDeviceDetails2, "rbNotInstalledAppsUserDeviceDetails");
            userDeviceDetailsActivity.G3(rbNotInstalledAppsUserDeviceDetails2);
            RadioButton rbInstalledAppsUserDeviceDetails2 = userDeviceDetailsActivity.x3().g;
            kotlin.jvm.internal.m.d(rbInstalledAppsUserDeviceDetails2, "rbInstalledAppsUserDeviceDetails");
            userDeviceDetailsActivity.H3(rbInstalledAppsUserDeviceDetails2);
        }
        userDeviceDetailsActivity.x3().j.smoothScrollToPosition(0);
    }

    private final void z3(final g2.T t) {
        Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
        if (drawable != null) {
            x3().k.setNavigationIcon(drawable);
            x3().k.setNavigationContentDescription(getString(2131951721));
        }
        x3().k.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.A3(UserDeviceDetailsActivity.this, view);
            }
        });
        TextView textView = x3().y;
        k.a aVar = N1.k.g;
        textView.setTypeface(aVar.w());
        x3().k.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.B3(UserDeviceDetailsActivity.this, view);
            }
        });
        x3().o.setTypeface(aVar.w());
        x3().u.setTypeface(aVar.x());
        x3().v.setTypeface(aVar.x());
        x3().l.setTypeface(aVar.x());
        x3().m.setTypeface(aVar.x());
        x3().r.setTypeface(aVar.x());
        x3().s.setTypeface(aVar.x());
        x3().p.setTypeface(aVar.x());
        x3().q.setTypeface(aVar.x());
        x3().x.setTypeface(aVar.x());
        x3().w.setTypeface(aVar.w());
        x3().n.setTypeface(aVar.w());
        x3().g.setTypeface(aVar.x());
        x3().h.setTypeface(aVar.x());
        x3().w.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.C3(UserDeviceDetailsActivity.this, t, view);
            }
        });
        x3().b.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.E3(UserDeviceDetailsActivity.this, t, view);
            }
        });
        x3().c.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                UserDeviceDetailsActivity.F3(UserDeviceDetailsActivity.this, view);
            }
        });
        x3().o.setText(t.g());
        x3().v.setText(t.i());
        x3().m.setText(t.a());
        x3().s.setText(t.f());
        x3().q.setText(new u2.p().l(t.e()));
        x3().j.setLayoutManager(new LinearLayoutManager(this, 1, false));
        x3().j.setItemAnimator(new DefaultItemAnimator());
        int dimension = (int) getResources().getDimension(2131166020);
        x3().j.addItemDecoration(new w2.l(dimension, dimension));
        y3().d(this, t);
    }

    @Override
    protected void onCreate(Bundle bundle) {
        Bundle extras;
        Parcelable parcelable;
        Object parcelable2;
        super.onCreate(bundle);
        setContentView(x3().getRoot());
        getOnBackPressedDispatcher().addCallback(this.N);
        if (getIntent() != null && (extras = getIntent().getExtras()) != null && extras.containsKey("user_device")) {
            r3.t h4 = y3().h();
            if (Build.VERSION.SDK_INT >= 33) {
                parcelable2 = extras.getParcelable("user_device", g2.T.class);
                parcelable = (Parcelable) parcelable2;
            } else {
                parcelable = extras.getParcelable("user_device");
            }
            kotlin.jvm.internal.m.b(parcelable);
            h4.setValue(parcelable);
            z3((g2.T) y3().h().getValue());
        }
        o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new k(null), 2, (Object) null);
        o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new l(null), 2, (Object) null);
        o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), o3.Y.c(), (o3.L) null, new m(null), 2, (Object) null);
    }

    public final T0 x3() {
        return (T0) this.J.getValue();
    }

    public final Z y3() {
        return (Z) this.K.getValue();
    }
}