APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Cuto
版本号:2.6.10
包名称:com.sspai.cuto.android

MD5 校验值:9a3607a8b6a643c932183399cb0ea25c

反编译源代码说明

G.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package x6;

import B5.Q;
import G1.ActivityC0553w;
import android.app.Application;
import android.app.Dialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.d;
import androidx.appcompat.widget.AppCompatButton;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.lifecycle.C0826n;
import c6.C0930a;
import c6.C0932c;
import com.davemorrissey.labs.subscaleview.R;
import e5.C1089l;
import e5.C1102y;
import g6.AbstractC1209a;
import i5.C1291i;
import i5.InterfaceC1286d;
import j5.EnumC1363a;
import k5.AbstractC1431i;
import k5.InterfaceC1427e;
import net.dchdc.cuto.iap.view.OnlineSupportActivity;
import r5.InterfaceC1729p;
import x6.G;
import y0.C2171s;

public final class G extends AbstractC2132f {

    public static final int f21216C0 = 0;

    public C0932c f21217A0;

    public C0930a f21218B0;

    public final V6.b f21219y0 = V6.c.b("UpsellDialog");

    public Z5.a f21220z0;

    @InterfaceC1427e(c = "net.dchdc.cuto.view.UpsellDialog$onCreateView$2$isLoggedIn$1", f = "UpsellDialog.kt", l = {R.styleable.AppCompatTheme_dialogCornerRadius}, m = "invokeSuspend")
    public static final class a extends AbstractC1431i implements InterfaceC1729p<B5.C, InterfaceC1286d<? super Boolean>, Object> {

        public int f21221l;

        public a(InterfaceC1286d<? super a> interfaceC1286d) {
            super(2, interfaceC1286d);
        }

        @Override
        public final InterfaceC1286d<C1102y> a(Object obj, InterfaceC1286d<?> interfaceC1286d) {
            return new a(interfaceC1286d);
        }

        @Override
        public final Object invoke(B5.C c8, InterfaceC1286d<? super Boolean> interfaceC1286d) {
            return ((a) a(c8, interfaceC1286d)).l(C1102y.f14898a);
        }

        @Override
        public final Object l(Object obj) {
            EnumC1363a enumC1363a = EnumC1363a.f16388h;
            int i8 = this.f21221l;
            if (i8 == 0) {
                C1089l.b(obj);
                C0930a c0930a = G.this.f21218B0;
                if (c0930a == null) {
                    kotlin.jvm.internal.l.i("accountManager");
                    throw null;
                }
                this.f21221l = 1;
                obj = c0930a.b(this);
                if (obj == enumC1363a) {
                    return enumC1363a;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                C1089l.b(obj);
            }
            return Boolean.valueOf(obj != null);
        }
    }

    @InterfaceC1427e(c = "net.dchdc.cuto.view.UpsellDialog$onCreateView$5$1", f = "UpsellDialog.kt", l = {R.styleable.AppCompatTheme_listPreferredItemPaddingRight}, m = "invokeSuspend")
    public static final class b extends AbstractC1431i implements InterfaceC1729p<B5.C, InterfaceC1286d<? super C1102y>, Object> {

        public k f21223l;

        public int f21224m;

        public b(InterfaceC1286d<? super b> interfaceC1286d) {
            super(2, interfaceC1286d);
        }

        @Override
        public final InterfaceC1286d<C1102y> a(Object obj, InterfaceC1286d<?> interfaceC1286d) {
            return new b(interfaceC1286d);
        }

        @Override
        public final Object invoke(B5.C c8, InterfaceC1286d<? super C1102y> interfaceC1286d) {
            return ((b) a(c8, interfaceC1286d)).l(C1102y.f14898a);
        }

        @Override
        public final Object l(Object obj) {
            k kVar;
            EnumC1363a enumC1363a = EnumC1363a.f16388h;
            int i8 = this.f21224m;
            if (i8 == 0) {
                C1089l.b(obj);
                k kVar2 = new k();
                G g8 = G.this;
                G1.F o7 = g8.o();
                kotlin.jvm.internal.l.e(o7, "getChildFragmentManager(...)");
                kVar2.f0(o7, "ProgressDialog");
                Application application = g8.V().getApplication();
                kotlin.jvm.internal.l.e(application, "getApplication(...)");
                w6.c cVar = new w6.c(application);
                this.f21223l = kVar2;
                this.f21224m = 1;
                if (cVar.b(this) == enumC1363a) {
                    return enumC1363a;
                }
                kVar = kVar2;
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                kVar = this.f21223l;
                C1089l.b(obj);
            }
            kVar.g0();
            return C1102y.f14898a;
        }
    }

    @InterfaceC1427e(c = "net.dchdc.cuto.view.UpsellDialog$onCreateView$6$1", f = "UpsellDialog.kt", l = {R.styleable.AppCompatTheme_selectableItemBackgroundBorderless}, m = "invokeSuspend")
    public static final class c extends AbstractC1431i implements InterfaceC1729p<B5.C, InterfaceC1286d<? super C1102y>, Object> {

        public k f21226l;

        public int f21227m;

        public c(InterfaceC1286d<? super c> interfaceC1286d) {
            super(2, interfaceC1286d);
        }

        @Override
        public final InterfaceC1286d<C1102y> a(Object obj, InterfaceC1286d<?> interfaceC1286d) {
            return new c(interfaceC1286d);
        }

        @Override
        public final Object invoke(B5.C c8, InterfaceC1286d<? super C1102y> interfaceC1286d) {
            return ((c) a(c8, interfaceC1286d)).l(C1102y.f14898a);
        }

        @Override
        public final Object l(Object obj) {
            k kVar;
            Boolean bool;
            EnumC1363a enumC1363a = EnumC1363a.f16388h;
            int i8 = this.f21227m;
            int i9 = 1;
            G g8 = G.this;
            if (i8 == 0) {
                C1089l.b(obj);
                k kVar2 = new k();
                G1.F o7 = g8.o();
                kotlin.jvm.internal.l.e(o7, "getChildFragmentManager(...)");
                kVar2.f0(o7, "ProgressDialog");
                try {
                    Z5.a aVar = g8.f21220z0;
                    if (aVar == null) {
                        kotlin.jvm.internal.l.i("iapManager");
                        throw null;
                    }
                    this.f21226l = kVar2;
                    this.f21227m = 1;
                    Object c02 = A5.e.c0(Q.f790b, new Z5.c(aVar, null), this);
                    if (c02 == enumC1363a) {
                        return enumC1363a;
                    }
                    kVar = kVar2;
                    obj = c02;
                } catch (Exception unused) {
                    kVar = kVar2;
                    bool = Boolean.FALSE;
                    kVar.g0();
                    if (bool != null) {
                    }
                    g8.g0();
                    return C1102y.f14898a;
                }
            } else {
                if (i8 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                kVar = this.f21226l;
                try {
                    C1089l.b(obj);
                } catch (Exception unused2) {
                    bool = Boolean.FALSE;
                    kVar.g0();
                    if (bool != null) {
                    }
                    g8.g0();
                    return C1102y.f14898a;
                }
            }
            bool = (Boolean) obj;
            kVar.g0();
            if (bool != null) {
                Toast.makeText(g8.W(), bool.booleanValue() ? com.sspai.cuto.android.R.string.restore_success : com.sspai.cuto.android.R.string.restore_failed, 1).show();
            } else {
                ActivityC0553w V7 = g8.V();
                d.a aVar2 = new d.a(V7);
                aVar2.b(com.sspai.cuto.android.R.string.login_before_restore);
                aVar2.d(com.sspai.cuto.android.R.string.login, new w6.l(V7, i9));
                aVar2.c(android.R.string.cancel, null);
                aVar2.e();
            }
            g8.g0();
            return C1102y.f14898a;
        }
    }

    @Override
    public final View H(LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
        kotlin.jvm.internal.l.f(inflater, "inflater");
        if (this.f21217A0 == null) {
            kotlin.jvm.internal.l.i("analyticManager");
            throw null;
        }
        C0932c.e("open_upsell_dialog");
        Dialog dialog = this.f3305o0;
        if (dialog != 0) {
            dialog.setOnShowListener(new Object());
        }
        final int i8 = 0;
        View inflate = inflater.inflate(com.sspai.cuto.android.R.layout.dialog_upsell, viewGroup, false);
        int i9 = com.sspai.cuto.android.R.id.handle;
        if (((ImageView) C2171s.d(inflate, com.sspai.cuto.android.R.id.handle)) != null) {
            i9 = com.sspai.cuto.android.R.id.online_support;
            TextView textView = (TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.online_support);
            if (textView != null) {
                i9 = com.sspai.cuto.android.R.id.price;
                if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.price)) != null) {
                    i9 = com.sspai.cuto.android.R.id.privacy;
                    TextView textView2 = (TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.privacy);
                    if (textView2 != null) {
                        i9 = com.sspai.cuto.android.R.id.pro_customization_description;
                        if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_customization_description)) != null) {
                            i9 = com.sspai.cuto.android.R.id.pro_customize_icon;
                            if (((ImageView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_customize_icon)) != null) {
                                i9 = com.sspai.cuto.android.R.id.pro_favorite;
                                if (((ImageView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_favorite)) != null) {
                                    i9 = com.sspai.cuto.android.R.id.pro_favorite_sync_description;
                                    if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_favorite_sync_description)) != null) {
                                        i9 = com.sspai.cuto.android.R.id.pro_more_features_description;
                                        if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_more_features_description)) != null) {
                                            i9 = com.sspai.cuto.android.R.id.pro_more_features_icon;
                                            if (((ImageView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_more_features_icon)) != null) {
                                                i9 = com.sspai.cuto.android.R.id.pro_wallpaper;
                                                if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_wallpaper)) != null) {
                                                    i9 = com.sspai.cuto.android.R.id.pro_wallpaper_icon;
                                                    if (((ImageView) C2171s.d(inflate, com.sspai.cuto.android.R.id.pro_wallpaper_icon)) != null) {
                                                        i9 = com.sspai.cuto.android.R.id.restore_purchase;
                                                        TextView textView3 = (TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.restore_purchase);
                                                        if (textView3 != null) {
                                                            i9 = com.sspai.cuto.android.R.id.restore_purchase_description;
                                                            if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.restore_purchase_description)) != null) {
                                                                i9 = com.sspai.cuto.android.R.id.summary;
                                                                if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.summary)) != null) {
                                                                    i9 = com.sspai.cuto.android.R.id.terms;
                                                                    TextView textView4 = (TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.terms);
                                                                    if (textView4 != null) {
                                                                        i9 = com.sspai.cuto.android.R.id.title;
                                                                        if (((TextView) C2171s.d(inflate, com.sspai.cuto.android.R.id.title)) != null) {
                                                                            i9 = com.sspai.cuto.android.R.id.unlock_pro;
                                                                            AppCompatButton appCompatButton = (AppCompatButton) C2171s.d(inflate, com.sspai.cuto.android.R.id.unlock_pro);
                                                                            if (appCompatButton != null) {
                                                                                ConstraintLayout constraintLayout = (ConstraintLayout) inflate;
                                                                                appCompatButton.setOnClickListener(new View.OnClickListener(this) {

                                                                                    public final G f21212i;

                                                                                    {
                                                                                        this.f21212i = this;
                                                                                    }

                                                                                    @Override
                                                                                    public final void onClick(View view) {
                                                                                        int i10 = i8;
                                                                                        G this$0 = this.f21212i;
                                                                                        switch (i10) {
                                                                                            case 0:
                                                                                                int i11 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                if (!kotlin.jvm.internal.l.a(AbstractC1209a.C0211a.f15297b, AbstractC1209a.b.f15298b)) {
                                                                                                    if (!((Boolean) A5.e.Q(C1291i.f15995h, new G.a(null))).booleanValue()) {
                                                                                                        new q().f0(this$0.r(), "PurchaseTeachingDialog");
                                                                                                        return;
                                                                                                    }
                                                                                                }
                                                                                                C0826n i12 = C2171s.i(this$0.w());
                                                                                                I5.c cVar = Q.f789a;
                                                                                                A5.e.I(i12, G5.t.f3552a, null, new F(this$0, null), 2);
                                                                                                this$0.g0();
                                                                                                return;
                                                                                            default:
                                                                                                int i13 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                if (kotlin.jvm.internal.l.a(AbstractC1209a.C0211a.f15297b, AbstractC1209a.b.f15298b)) {
                                                                                                    A5.e.I(C2171s.i(this$0.w()), null, null, new G.b(null), 3);
                                                                                                    return;
                                                                                                } else {
                                                                                                    this$0.b0(new Intent(this$0.i(), (Class<?>) OnlineSupportActivity.class));
                                                                                                    this$0.g0();
                                                                                                    return;
                                                                                                }
                                                                                        }
                                                                                    }
                                                                                });
                                                                                textView2.setOnClickListener(new View.OnClickListener(this) {

                                                                                    public final G f21214i;

                                                                                    {
                                                                                        this.f21214i = this;
                                                                                    }

                                                                                    @Override
                                                                                    public final void onClick(View view) {
                                                                                        int i10 = i8;
                                                                                        G this$0 = this.f21214i;
                                                                                        switch (i10) {
                                                                                            case 0:
                                                                                                int i11 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                w6.g.g(this$0.V(), new Intent("android.intent.action.VIEW", Uri.parse("https://www.cutowallpaper.com/privacy/android/")));
                                                                                                return;
                                                                                            default:
                                                                                                int i12 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                C0826n i13 = C2171s.i(this$0);
                                                                                                I5.c cVar = Q.f789a;
                                                                                                A5.e.I(i13, G5.t.f3552a, null, new G.c(null), 2);
                                                                                                return;
                                                                                        }
                                                                                    }
                                                                                });
                                                                                textView4.setOnClickListener(new com.google.android.material.datepicker.r(5, this));
                                                                                final int i10 = 1;
                                                                                textView.setOnClickListener(new View.OnClickListener(this) {

                                                                                    public final G f21212i;

                                                                                    {
                                                                                        this.f21212i = this;
                                                                                    }

                                                                                    @Override
                                                                                    public final void onClick(View view) {
                                                                                        int i102 = i10;
                                                                                        G this$0 = this.f21212i;
                                                                                        switch (i102) {
                                                                                            case 0:
                                                                                                int i11 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                if (!kotlin.jvm.internal.l.a(AbstractC1209a.C0211a.f15297b, AbstractC1209a.b.f15298b)) {
                                                                                                    if (!((Boolean) A5.e.Q(C1291i.f15995h, new G.a(null))).booleanValue()) {
                                                                                                        new q().f0(this$0.r(), "PurchaseTeachingDialog");
                                                                                                        return;
                                                                                                    }
                                                                                                }
                                                                                                C0826n i12 = C2171s.i(this$0.w());
                                                                                                I5.c cVar = Q.f789a;
                                                                                                A5.e.I(i12, G5.t.f3552a, null, new F(this$0, null), 2);
                                                                                                this$0.g0();
                                                                                                return;
                                                                                            default:
                                                                                                int i13 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                if (kotlin.jvm.internal.l.a(AbstractC1209a.C0211a.f15297b, AbstractC1209a.b.f15298b)) {
                                                                                                    A5.e.I(C2171s.i(this$0.w()), null, null, new G.b(null), 3);
                                                                                                    return;
                                                                                                } else {
                                                                                                    this$0.b0(new Intent(this$0.i(), (Class<?>) OnlineSupportActivity.class));
                                                                                                    this$0.g0();
                                                                                                    return;
                                                                                                }
                                                                                        }
                                                                                    }
                                                                                });
                                                                                textView3.setOnClickListener(new View.OnClickListener(this) {

                                                                                    public final G f21214i;

                                                                                    {
                                                                                        this.f21214i = this;
                                                                                    }

                                                                                    @Override
                                                                                    public final void onClick(View view) {
                                                                                        int i102 = i10;
                                                                                        G this$0 = this.f21214i;
                                                                                        switch (i102) {
                                                                                            case 0:
                                                                                                int i11 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                w6.g.g(this$0.V(), new Intent("android.intent.action.VIEW", Uri.parse("https://www.cutowallpaper.com/privacy/android/")));
                                                                                                return;
                                                                                            default:
                                                                                                int i12 = G.f21216C0;
                                                                                                kotlin.jvm.internal.l.f(this$0, "this$0");
                                                                                                C0826n i13 = C2171s.i(this$0);
                                                                                                I5.c cVar = Q.f789a;
                                                                                                A5.e.I(i13, G5.t.f3552a, null, new G.c(null), 2);
                                                                                                return;
                                                                                        }
                                                                                    }
                                                                                });
                                                                                kotlin.jvm.internal.l.e(constraintLayout, "getRoot(...)");
                                                                                return constraintLayout;
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i9)));
    }
}