导航菜单

页面标题

页面副标题

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

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

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


package com.uptodown.activities;

import N1.k;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.EditText;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import c2.H0;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.uptodown.activities.Suggestions;
import g2.C0949J;
import g2.C0964o;
import g2.C0972x;
import o3.E0;
import org.json.JSONObject;

public final class Suggestions extends AbstractC0740a {
    private final R2.g J = R2.h.a(new d3.a() {
        @Override
        public final Object invoke() {
            c2.H0 j32;
            j32 = Suggestions.j3(Suggestions.this);
            return j32;
        }
    });
    private boolean K;

    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 Suggestions.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);
                Suggestions suggestions = Suggestions.this;
                String obj2 = suggestions.l3().b.getText().toString();
                String obj3 = Suggestions.this.l3().c.getText().toString();
                this.a = 1;
                if (suggestions.q3(obj2, obj3, 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.l implements d3.p {
        int a;
        final String c;
        final String d;

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

            a(kotlin.jvm.internal.A a, Suggestions suggestions, kotlin.jvm.internal.C c, V2.d dVar) {
                super(2, dVar);
                this.b = a;
                this.c = suggestions;
                this.d = c;
            }

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

            @Override
            public final Object invokeSuspend(Object obj) {
                Object c = W2.b.c();
                int i = this.a;
                if (i == 0) {
                    R2.n.b(obj);
                    if (this.b.a != 1) {
                        kotlin.jvm.internal.C c4 = this.d;
                        if (c4.a == null) {
                            c4.a = this.c.getResources().getString(2131952006);
                        }
                        CharSequence charSequence = (CharSequence) this.d.a;
                        if (charSequence != null && charSequence.length() != 0) {
                            Suggestions suggestions = this.c;
                            Object obj2 = this.d.a;
                            kotlin.jvm.internal.m.b(obj2);
                            suggestions.r0((String) obj2);
                        }
                        this.c.K = false;
                        this.c.l3().d.setVisibility(8);
                        return R2.s.a;
                    }
                    ?? r5 = this.c;
                    String string = r5.getString(2131952663);
                    kotlin.jvm.internal.m.d(string, "getString(...)");
                    r5.r0(string);
                    this.a = 1;
                    if (o3.U.b(1000L, this) == c) {
                        return c;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    R2.n.b(obj);
                }
                this.c.finish();
                this.c.K = false;
                this.c.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);
            }
        }

        b(String str, String str2, V2.d dVar) {
            super(2, dVar);
            this.c = str;
            this.d = str2;
        }

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

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                R2.n.b(obj);
                kotlin.jvm.internal.A a4 = new kotlin.jvm.internal.A();
                kotlin.jvm.internal.C c4 = new kotlin.jvm.internal.C();
                c4.a = TtmlNode.ANONYMOUS_REGION_ID;
                C0964o c0964o = new C0964o();
                Context applicationContext = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext, "getApplicationContext(...)");
                c0964o.k(applicationContext);
                C0972x c0972x = new C0972x();
                u2.x xVar = new u2.x();
                Context applicationContext2 = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext2, "getApplicationContext(...)");
                c0972x.g(xVar.f(applicationContext2));
                u2.x xVar2 = new u2.x();
                Context applicationContext3 = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext3, "getApplicationContext(...)");
                c0972x.e(xVar2.a(applicationContext3));
                u2.x xVar3 = new u2.x();
                Context applicationContext4 = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext4, "getApplicationContext(...)");
                c0972x.h(xVar3.g(applicationContext4));
                u2.x xVar4 = new u2.x();
                Context applicationContext5 = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext5, "getApplicationContext(...)");
                c0972x.f(xVar4.b(applicationContext5));
                Context applicationContext6 = Suggestions.this.getApplicationContext();
                kotlin.jvm.internal.m.d(applicationContext6, "getApplicationContext(...)");
                C0949J Y02 = new u2.O(applicationContext6).Y0(this.c, this.d, c0964o, c0972x);
                if (!Y02.b() && Y02.e() != null) {
                    JSONObject e = Y02.e();
                    kotlin.jvm.internal.m.b(e);
                    if (e.optInt("success") == 0) {
                        c4.a = Y02.g(e);
                    } else {
                        a4.a = 1;
                    }
                }
                E0 c5 = o3.Y.c();
                a aVar = new a(a4, Suggestions.this, c4, null);
                this.a = 1;
                if (o3.g.g(c5, 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 ((b) create(j, dVar)).invokeSuspend(R2.s.a);
        }
    }

    public static final H0 j3(Suggestions suggestions) {
        return H0.c(suggestions.getLayoutInflater());
    }

    private final boolean k3() {
        Editable text = l3().b.getText();
        if (text == null || text.length() == 0) {
            String string = getString(2131952032);
            kotlin.jvm.internal.m.d(string, "getString(...)");
            r0(string);
            return false;
        }
        Editable text2 = l3().c.getText();
        if (text2 != null && text2.length() != 0) {
            return true;
        }
        String string2 = getString(2131952033);
        kotlin.jvm.internal.m.d(string2, "getString(...)");
        r0(string2);
        return false;
    }

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

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

    public static final void n3(Suggestions suggestions, View view, boolean z) {
        if (z) {
            suggestions.l3().b.setHint(TtmlNode.ANONYMOUS_REGION_ID);
        } else {
            suggestions.l3().b.setHint(suggestions.getString(2131952065));
        }
    }

    public static final void o3(Suggestions suggestions, View view, boolean z) {
        if (z) {
            suggestions.l3().c.setHint(TtmlNode.ANONYMOUS_REGION_ID);
        } else {
            suggestions.l3().c.setHint(suggestions.getString(2131952069));
        }
    }

    public static final void p3(Suggestions suggestions, View view) {
        if (suggestions.K) {
            return;
        }
        suggestions.l3().d.setVisibility(0);
        suggestions.K = true;
        if (suggestions.k3()) {
            o3.g.d(o3.K.a(o3.Y.b()), (V2.g) null, (o3.L) null, suggestions.new a(null), 3, (Object) null);
        } else {
            suggestions.K = false;
            suggestions.l3().d.setVisibility(8);
        }
    }

    public final Object q3(String str, String str2, V2.d dVar) {
        Object g = o3.g.g(o3.Y.b(), new b(str, str2, null), dVar);
        return g == W2.b.c() ? g : R2.s.a;
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(l3().getRoot());
        Toolbar findViewById = findViewById(2131363539);
        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) {
                    Suggestions.m3(Suggestions.this, view);
                }
            });
            l3().g.setTypeface(N1.k.g.w());
        }
        EditText editText = l3().b;
        k.a aVar = N1.k.g;
        editText.setTypeface(aVar.x());
        l3().b.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public final void onFocusChange(View view, boolean z) {
                Suggestions.n3(Suggestions.this, view, z);
            }
        });
        l3().c.setTypeface(aVar.x());
        l3().c.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public final void onFocusChange(View view, boolean z) {
                Suggestions.o3(Suggestions.this, view, z);
            }
        });
        l3().f.setTypeface(aVar.w());
        l3().f.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                Suggestions.p3(Suggestions.this, view);
            }
        });
    }
}