导航菜单

页面标题

页面副标题

klikUMKM v2.0.1 - YNCameraActivity.java 源代码

正在查看: klikUMKM v2.0.1 应用的 YNCameraActivity.java JAVA 源代码文件

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


package com.yx.credit.indonesia.ui.camera;

import android.graphics.Bitmap;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.compose.runtime.a2;
import androidx.compose.runtime.c3;
import androidx.compose.runtime.e1;
import androidx.compose.runtime.m1;
import androidx.lifecycle.b1;
import androidx.lifecycle.d1;
import androidx.lifecycle.f1;
import androidx.lifecycle.u0;
import com.google.firebase.encoders.json.BuildConfig;
import com.yx.credit.base.activity.BaseFragmentActivity;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;

@SourceDebugExtension({"SMAP\nYNCameraActivity.kt\nKotlin\n*S Kotlin\n*F\n+ 1 YNCameraActivity.kt\ncom/yx/credit/indonesia/ui/camera/YNCameraActivity\n+ 2 ActivityViewModelLazy.kt\nandroidx/activity/ActivityViewModelLazyKt\n+ 3 SnapshotState.kt\nandroidx/compose/runtime/SnapshotStateKt__SnapshotStateKt\n+ 4 Composer.kt\nandroidx/compose/runtime/ComposerKt\n*L\n1#1,125:1\n70#2,11:126\n85#3:137\n117#3,2:138\n85#3:140\n117#3,2:141\n85#3:167\n117#3,2:168\n1282#4,6:143\n1282#4,6:149\n1282#4,6:155\n1282#4,6:161\n*S KotlinDebug\n*F\n+ 1 YNCameraActivity.kt\ncom/yx/credit/indonesia/ui/camera/YNCameraActivity\n*L\n30#1:126,11\n31#1:137\n31#1:138,2\n32#1:140\n32#1:141,2\n58#1:167\n58#1:168,2\n58#1:143,6\n62#1:149,6\n78#1:155,6\n117#1:161,6\n*E\n"})
public final class YNCameraActivity extends BaseFragmentActivity {
    public static final int O = 0;
    public final b1 K = new b1(Reflection.getOrCreateKotlinClass(i0.class), new b(this), new a(this), new c(null, this));
    public final m1 L = androidx.compose.runtime.b.w(Boolean.FALSE);
    public final m1 M = androidx.compose.runtime.b.w(Boolean.TRUE);
    public Bitmap N;

    public static final class a extends Lambda implements Function0 {
        final ComponentActivity $this_viewModels;

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

        @Override
        public final d1 invoke() {
            return this.$this_viewModels.p();
        }
    }

    public static final class b extends Lambda implements Function0 {
        final ComponentActivity $this_viewModels;

        public b(ComponentActivity componentActivity) {
            super(0);
            this.$this_viewModels = componentActivity;
        }

        @Override
        public final f1 invoke() {
            return this.$this_viewModels.v();
        }
    }

    public static final class c extends Lambda implements Function0 {
        final Function0 $extrasProducer;
        final ComponentActivity $this_viewModels;

        public c(Function0 function0, ComponentActivity componentActivity) {
            super(0);
            this.$extrasProducer = function0;
            this.$this_viewModels = componentActivity;
        }

        @Override
        public final p3.c invoke() {
            p3.c cVar;
            Function0 function0 = this.$extrasProducer;
            return (function0 == null || (cVar = (p3.c) function0.invoke()) == null) ? this.$this_viewModels.q() : cVar;
        }
    }

    public final void M(androidx.compose.runtime.m mVar, int i10) {
        androidx.compose.runtime.t tVar = (androidx.compose.runtime.t) mVar;
        tVar.b0(388008369);
        if ((((tVar.h(this) ? 4 : 2) | i10) & 3) == 2 && tVar.E()) {
            tVar.V();
        } else {
            tVar.a0(1849434622);
            Object P = tVar.P();
            e1 e1Var = androidx.compose.runtime.l.a;
            if (P == e1Var) {
                P = androidx.compose.runtime.b.w(BuildConfig.FLAVOR);
                tVar.j0(P);
            }
            final m1 m1Var = (m1) P;
            tVar.q(false);
            if (((Boolean) ((c3) this.M).getValue()).booleanValue()) {
                tVar.a0(1400466039);
                tVar.a0(-1633490746);
                boolean h10 = tVar.h(this);
                Object P2 = tVar.P();
                if (h10 || P2 == e1Var) {
                    final int i11 = 0;
                    P2 = new Function2(this) {

                        public final YNCameraActivity f7340b;

                        {
                            this.f7340b = this;
                        }

                        @Override
                        public final Object invoke(Object obj, Object obj2) {
                            m1 m1Var2 = m1Var;
                            YNCameraActivity yNCameraActivity = this.f7340b;
                            int i12 = i11;
                            int intValue = ((Integer) obj).intValue();
                            String s2 = (String) obj2;
                            switch (i12) {
                                case 0:
                                    int i13 = YNCameraActivity.O;
                                    Intrinsics.checkNotNullParameter(s2, "s");
                                    if (intValue == 0) {
                                        yNCameraActivity.finish();
                                    } else if (intValue == 1) {
                                        m1Var2.setValue(s2);
                                        i0 i0Var = (i0) yNCameraActivity.K.getValue();
                                        String bitmappath = (String) m1Var2.getValue();
                                        androidx.camera.core.impl.utils.a call = new androidx.camera.core.impl.utils.a(8, yNCameraActivity);
                                        i0Var.getClass();
                                        Intrinsics.checkNotNullParameter(bitmappath, "bitmappath");
                                        Intrinsics.checkNotNullParameter(call, "call");
                                        kotlinx.coroutines.f0.q(u0.i(i0Var), null, null, new g0(call, bitmappath, null), 3);
                                    }
                                    break;
                                default:
                                    int i14 = YNCameraActivity.O;
                                    Intrinsics.checkNotNullParameter(s2, "str");
                                    if (intValue == 0 || intValue == 1) {
                                        ((c3) yNCameraActivity.M).setValue(Boolean.TRUE);
                                    } else if (intValue == 2) {
                                        i0 i0Var2 = (i0) yNCameraActivity.K.getValue();
                                        Bitmap bitmap = yNCameraActivity.N;
                                        Intrinsics.checkNotNull(bitmap);
                                        androidx.camera.viewfinder.compose.d function = new androidx.camera.viewfinder.compose.d(3, yNCameraActivity, m1Var2);
                                        i0Var2.getClass();
                                        Intrinsics.checkNotNullParameter(bitmap, "bitmap");
                                        Intrinsics.checkNotNullParameter(function, "function");
                                        kotlinx.coroutines.f0.q(u0.i(i0Var2), null, null, new h0(i0Var2, bitmap, function, null), 3);
                                    }
                                    break;
                            }
                            return Unit.a;
                        }
                    };
                    tVar.j0(P2);
                }
                tVar.q(false);
                e0.a((Function2) P2, tVar, 0);
                tVar.q(false);
            } else {
                tVar.a0(1400942788);
                Bitmap bitmap = this.N;
                Intrinsics.checkNotNull(bitmap);
                tVar.a0(-1633490746);
                boolean h11 = tVar.h(this);
                Object P3 = tVar.P();
                if (h11 || P3 == e1Var) {
                    final int i12 = 1;
                    P3 = new Function2(this) {

                        public final YNCameraActivity f7340b;

                        {
                            this.f7340b = this;
                        }

                        @Override
                        public final Object invoke(Object obj, Object obj2) {
                            m1 m1Var2 = m1Var;
                            YNCameraActivity yNCameraActivity = this.f7340b;
                            int i122 = i12;
                            int intValue = ((Integer) obj).intValue();
                            String s2 = (String) obj2;
                            switch (i122) {
                                case 0:
                                    int i13 = YNCameraActivity.O;
                                    Intrinsics.checkNotNullParameter(s2, "s");
                                    if (intValue == 0) {
                                        yNCameraActivity.finish();
                                    } else if (intValue == 1) {
                                        m1Var2.setValue(s2);
                                        i0 i0Var = (i0) yNCameraActivity.K.getValue();
                                        String bitmappath = (String) m1Var2.getValue();
                                        androidx.camera.core.impl.utils.a call = new androidx.camera.core.impl.utils.a(8, yNCameraActivity);
                                        i0Var.getClass();
                                        Intrinsics.checkNotNullParameter(bitmappath, "bitmappath");
                                        Intrinsics.checkNotNullParameter(call, "call");
                                        kotlinx.coroutines.f0.q(u0.i(i0Var), null, null, new g0(call, bitmappath, null), 3);
                                    }
                                    break;
                                default:
                                    int i14 = YNCameraActivity.O;
                                    Intrinsics.checkNotNullParameter(s2, "str");
                                    if (intValue == 0 || intValue == 1) {
                                        ((c3) yNCameraActivity.M).setValue(Boolean.TRUE);
                                    } else if (intValue == 2) {
                                        i0 i0Var2 = (i0) yNCameraActivity.K.getValue();
                                        Bitmap bitmap2 = yNCameraActivity.N;
                                        Intrinsics.checkNotNull(bitmap2);
                                        androidx.camera.viewfinder.compose.d function = new androidx.camera.viewfinder.compose.d(3, yNCameraActivity, m1Var2);
                                        i0Var2.getClass();
                                        Intrinsics.checkNotNullParameter(bitmap2, "bitmap");
                                        Intrinsics.checkNotNullParameter(function, "function");
                                        kotlinx.coroutines.f0.q(u0.i(i0Var2), null, null, new h0(i0Var2, bitmap2, function, null), 3);
                                    }
                                    break;
                            }
                            return Unit.a;
                        }
                    };
                    tVar.j0(P3);
                }
                tVar.q(false);
                q.a(bitmap, (Function2) P3, tVar, 0);
                tVar.q(false);
            }
            if (((Boolean) ((c3) this.L).getValue()).booleanValue()) {
                tVar.a0(5004770);
                boolean h12 = tVar.h(this);
                Object P4 = tVar.P();
                if (h12 || P4 == e1Var) {
                    P4 = new androidx.camera.video.internal.workaround.a(4, this);
                    tVar.j0(P4);
                }
                tVar.q(false);
                androidx.constraintlayout.compose.a.a((Function0) P4, tVar, 0);
            }
        }
        a2 u = tVar.u();
        if (u != null) {
            u.f2506d = new androidx.compose.runtime.v(i10, this, 6);
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        androidx.activity.q.a(this);
        androidx.activity.compose.i.a(this, new w0.d(535903220, new androidx.compose.runtime.s(1, this), true));
        i0 i0Var = (i0) this.K.getValue();
        androidx.camera.core.impl.utils.b o3 = new androidx.camera.core.impl.utils.b(1, this);
        i0Var.getClass();
        Intrinsics.checkNotNullParameter(o3, "o");
        i0Var.f7342b = o3;
    }

    @Override
    public final void onResume() {
        super.onResume();
        if (n2.e.a(this, "android.permission.CAMERA") == 0) {
            return;
        }
        this.F.finish();
    }
}