导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.activities;

import N1.k;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleOwnerKt;
import c2.C0580f0;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.uptodown.activities.PasswordRecoveryActivity;
import g2.C0949J;
import o3.E0;
import org.json.JSONObject;

public final class PasswordRecoveryActivity extends AbstractC0740a {
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            C0580f0 i32;
            i32 = PasswordRecoveryActivity.i3(PasswordRecoveryActivity.this);
            return i32;
        }
    });

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

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

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

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                PasswordRecoveryActivity passwordRecoveryActivity = PasswordRecoveryActivity.this;
                this.a = 1;
                if (passwordRecoveryActivity.k3(this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
            }
            return R2.s.a;
        }

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

    static final class b extends kotlin.coroutines.jvm.internal.d {
        Object a;
        Object b;
        Object c;
        Object d;
        Object e;
        Object f;
        int h;

        b(V2.d dVar) {
            super(dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.f = obj;
            this.h |= Integer.MIN_VALUE;
            return PasswordRecoveryActivity.this.k3(this);
        }
    }

    static final class c extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;
        final kotlin.jvm.internal.C b;
        final PasswordRecoveryActivity c;
        final kotlin.jvm.internal.C d;
        final kotlin.jvm.internal.C e;

        c(kotlin.jvm.internal.C c, PasswordRecoveryActivity passwordRecoveryActivity, kotlin.jvm.internal.C c4, kotlin.jvm.internal.C c5, V2.d dVar) {
            super(2, dVar);
            this.b = c;
            this.c = passwordRecoveryActivity;
            this.d = c4;
            this.e = c5;
        }

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

        @Override
        public final Object invokeSuspend(Object obj) {
            W2.b.c();
            if (this.a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            R2.n.b(obj);
            this.b.a = this.c.getString(2131952006);
            this.c.l3().d.setVisibility(0);
            this.d.a = this.c.l3().c.getText().toString();
            this.e.a = this.c.l3().b.getText().toString();
            return R2.s.a;
        }

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

    static final class d extends kotlin.coroutines.jvm.internal.l implements d3.p {
        int a;
        final kotlin.jvm.internal.C c;
        final kotlin.jvm.internal.C d;
        final kotlin.jvm.internal.C e;
        final kotlin.jvm.internal.A f;

        static final class a extends kotlin.coroutines.jvm.internal.l implements d3.p {
            int a;
            final kotlin.jvm.internal.A b;
            final C0949J c;
            final PasswordRecoveryActivity d;
            final kotlin.jvm.internal.C e;

            a(kotlin.jvm.internal.A a, C0949J c0949j, PasswordRecoveryActivity passwordRecoveryActivity, kotlin.jvm.internal.C c, V2.d dVar) {
                super(2, dVar);
                this.b = a;
                this.c = c0949j;
                this.d = passwordRecoveryActivity;
                this.e = c;
            }

            @Override
            public final V2.d create(Object obj, V2.d dVar) {
                return new a(this.b, this.c, this.d, this.e, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                W2.b.c();
                if (this.a != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
                if (this.b.a == 0 || this.c.b()) {
                    this.d.p3((String) this.e.a);
                } else {
                    ?? r22 = this.d;
                    r22.p3(r22.getString(2131952315));
                    this.d.finish();
                }
                this.d.l3().d.setVisibility(8);
                return R2.s.a;
            }

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

        d(kotlin.jvm.internal.C c, kotlin.jvm.internal.C c4, kotlin.jvm.internal.C c5, kotlin.jvm.internal.A a4, V2.d dVar) {
            super(2, dVar);
            this.c = c;
            this.d = c4;
            this.e = c5;
            this.f = a4;
        }

        @Override
        public final V2.d create(Object obj, V2.d dVar) {
            return PasswordRecoveryActivity.this.new d(this.c, this.d, this.e, this.f, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                C0949J R02 = new u2.O(PasswordRecoveryActivity.this).R0((String) this.c.a, (String) this.d.a);
                if (R02.e() != null) {
                    JSONObject e = R02.e();
                    kotlin.jvm.internal.m.b(e);
                    this.e.a = R02.g(e);
                    if (!e.isNull("success")) {
                        this.f.a = e.optInt("success");
                    }
                }
                E0 c4 = o3.Y.c();
                a aVar = new a(this.f, R02, PasswordRecoveryActivity.this, this.e, null);
                this.a = 1;
                if (o3.g.g(c4, aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                R2.n.b(obj);
            }
            return R2.s.a;
        }

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

    public static final C0580f0 i3(PasswordRecoveryActivity passwordRecoveryActivity) {
        return C0580f0.c(passwordRecoveryActivity.getLayoutInflater());
    }

    private final void j3() {
        o3.g.d(LifecycleOwnerKt.getLifecycleScope(this), (V2.g) null, (o3.L) null, new a(null), 3, (Object) null);
    }

    public final java.lang.Object k3(V2.d r19) {
        throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.PasswordRecoveryActivity.k3(V2.d):java.lang.Object");
    }

    public final C0580f0 l3() {
        return (C0580f0) this.J.getValue();
    }

    public static final void m3(PasswordRecoveryActivity passwordRecoveryActivity, View view) {
        passwordRecoveryActivity.getOnBackPressedDispatcher().onBackPressed();
    }

    public static final void n3(PasswordRecoveryActivity passwordRecoveryActivity, View view) {
        if (m3.m.p(passwordRecoveryActivity.l3().c.getText().toString(), TtmlNode.ANONYMOUS_REGION_ID, true) || m3.m.p(passwordRecoveryActivity.l3().b.getText().toString(), TtmlNode.ANONYMOUS_REGION_ID, true)) {
            passwordRecoveryActivity.p3(passwordRecoveryActivity.getString(2131952004));
        } else if (m3.m.p(passwordRecoveryActivity.l3().c.getText().toString(), passwordRecoveryActivity.l3().b.getText().toString(), true)) {
            passwordRecoveryActivity.j3();
        } else {
            passwordRecoveryActivity.p3(passwordRecoveryActivity.getString(2131952005));
        }
    }

    public static final void o3(View view) {
    }

    public final void p3(String str) {
        if (str != null) {
            r0(str);
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(l3().getRoot());
        Toolbar findViewById = findViewById(2131363529);
        if (findViewById != null) {
            Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
            if (drawable != null) {
                findViewById.setNavigationIcon(drawable);
                findViewById.setNavigationContentDescription(getString(2131951721));
                findViewById.setNavigationOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        PasswordRecoveryActivity.m3(PasswordRecoveryActivity.this, view);
                    }
                });
            }
            TextView textView = (TextView) findViewById(2131364282);
            if (textView != null) {
                textView.setTypeface(N1.k.g.w());
            }
        }
        EditText editText = l3().c;
        k.a aVar = N1.k.g;
        editText.setTypeface(aVar.x());
        l3().b.setTypeface(aVar.x());
        l3().f.setTypeface(aVar.w());
        l3().f.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                PasswordRecoveryActivity.n3(PasswordRecoveryActivity.this, view);
            }
        });
        l3().d.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                PasswordRecoveryActivity.o3(view);
            }
        });
    }
}