导航菜单

页面标题

页面副标题

Handling Master v2 - lasSC.java 源代码

正在查看: Handling Master v2 应用的 lasSC.java JAVA 源代码文件

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


package com.fi.w;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.FrameLayout;
import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Locale;
import java.util.Map;
import sg.bigo.ads.R;
import sg.bigo.ads.ad.c;
import sg.bigo.ads.api.a.e;
import sg.bigo.ads.common.form.a;
import sg.bigo.ads.common.form.render.b;
import sg.bigo.ads.common.utils.q;
import sg.bigo.ads.common.utils.s;
import sg.bigo.ads.common.utils.u;
import sg.bigo.ads.controller.landing.d;

public class lasSC extends Activity implements b.a {
    public int I1IILIil1lLlL;

    @Nullable
    public c<?, ?> IL1lI11I;
    public sg.bigo.ads.common.form.c IliiIIIi11LLl;
    public int Ilil111lI;
    public int iIlLII1LiL1IL;
    public boolean iLLiL1il11l;
    public Map<String, Object> ilIiIIIliILIi;

    public class ilLiIi111I1ll implements View.OnClickListener {
        public ilLiIi111I1ll() {
        }

        @Override
        public final void onClick(View view) {
            lasSC.this.finish();
        }
    }

    @NonNull
    public static Intent ilLiIi111I1ll(Context context) {
        Intent intent = new Intent(context, (Class<?>) lasSC.class);
        if (!(context instanceof Activity)) {
            intent.addFlags(268435456);
        }
        return intent;
    }

    @Override
    public final void a() {
        this.iLLiL1il11l = true;
        c<?, ?> cVar = this.IL1lI11I;
        if (cVar != null) {
            cVar.i = true;
        }
    }

    @Override
    public final void a(String str) {
        if (q.a((CharSequence) str)) {
            return;
        }
        d.a(this, str, this.IL1lI11I);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent motionEvent) {
        if (motionEvent.getAction() == 0) {
            View currentFocus = getCurrentFocus();
            if ((currentFocus instanceof EditText) && !u.a(currentFocus, (int) motionEvent.getX(), (int) motionEvent.getY())) {
                currentFocus.clearFocus();
                try {
                    ((InputMethodManager) getSystemService("input_method")).hideSoftInputFromWindow(getWindow().getDecorView().getWindowToken(), 0);
                } catch (Throwable unused) {
                }
            }
        }
        return super.dispatchTouchEvent(motionEvent);
    }

    @Override
    public void onBackPressed() {
        if (this.iLLiL1il11l) {
            super.onBackPressed();
        }
    }

    @Override
    public final void onCreate(@Nullable Bundle bundle) {
        Object obj;
        c<?, ?> cVar;
        char c;
        Locale locale;
        super.onCreate(bundle);
        try {
            this.I1IILIil1lLlL = getIntent().getIntExtra("ad_identifier", -1);
            this.iIlLII1LiL1IL = getIntent().getIntExtra("open_form_time", 0);
            c<?, ?> b = d.b(this.I1IILIil1lLlL);
            this.IL1lI11I = b;
            if (b == null) {
                finish();
                return;
            }
            int hashCode = b.f().hashCode();
            this.Ilil111lI = hashCode;
            this.ilIiIIIliILIi = a.a(hashCode);
            setContentView(R.layout.bigo_ad_activity_form);
            Window window = getWindow();
            if (window != null) {
                s.a(window);
            }
            View findViewById = findViewById(R.id.bigo_ad_btn_close);
            if (findViewById != null) {
                findViewById.setOnClickListener(new ilLiIi111I1ll());
            }
            FrameLayout frameLayout = (FrameLayout) findViewById(R.id.inter_main);
            if (frameLayout == null || (cVar = this.IL1lI11I) == null) {
                return;
            }
            e f = cVar.f().f();
            String e = f.e();
            a.a = e;
            switch (e.hashCode()) {
                case 3121:
                    if (e.equals("ar")) {
                        c = 0;
                        break;
                    }
                    c = 65535;
                    break;
                case 3201:
                    if (e.equals("de")) {
                        c = '\r';
                        break;
                    }
                    c = 65535;
                    break;
                case 3246:
                    if (e.equals("es")) {
                        c = 1;
                        break;
                    }
                    c = 65535;
                    break;
                case 3259:
                    if (e.equals("fa")) {
                        c = 2;
                        break;
                    }
                    c = 65535;
                    break;
                case 3276:
                    if (e.equals("fr")) {
                        c = 16;
                        break;
                    }
                    c = 65535;
                    break;
                case 3325:
                    if (e.equals("he")) {
                        c = 3;
                        break;
                    }
                    c = 65535;
                    break;
                case 3329:
                    if (e.equals("hi")) {
                        c = 4;
                        break;
                    }
                    c = 65535;
                    break;
                case 3355:
                    if (e.equals("id")) {
                        c = 5;
                        break;
                    }
                    c = 65535;
                    break;
                case 3383:
                    if (e.equals("ja")) {
                        c = 14;
                        break;
                    }
                    c = 65535;
                    break;
                case 3428:
                    if (e.equals("ko")) {
                        c = 15;
                        break;
                    }
                    c = 65535;
                    break;
                case 3494:
                    if (e.equals("ms")) {
                        c = 6;
                        break;
                    }
                    c = 65535;
                    break;
                case 3588:
                    if (e.equals("pt")) {
                        c = 7;
                        break;
                    }
                    c = 65535;
                    break;
                case 3651:
                    if (e.equals("ru")) {
                        c = '\b';
                        break;
                    }
                    c = 65535;
                    break;
                case 3700:
                    if (e.equals("th")) {
                        c = '\n';
                        break;
                    }
                    c = 65535;
                    break;
                case 3710:
                    if (e.equals("tr")) {
                        c = '\t';
                        break;
                    }
                    c = 65535;
                    break;
                case 3749:
                    if (e.equals("uz")) {
                        c = 11;
                        break;
                    }
                    c = 65535;
                    break;
                case 3763:
                    if (e.equals("vi")) {
                        c = '\f';
                        break;
                    }
                    c = 65535;
                    break;
                default:
                    c = 65535;
                    break;
            }
            switch (c) {
                case 0:
                    locale = new Locale("ar", "");
                    break;
                case 1:
                    locale = new Locale("es", "");
                    break;
                case 2:
                    locale = new Locale("fa", "");
                    break;
                case 3:
                    locale = new Locale("he", "");
                    break;
                case 4:
                    locale = new Locale("hi", "");
                    break;
                case 5:
                    locale = new Locale("id", "");
                    break;
                case 6:
                    locale = new Locale("ms", "");
                    break;
                case 7:
                    locale = new Locale("pt", "");
                    break;
                case '\b':
                    locale = new Locale("ru", "");
                    break;
                case '\t':
                    locale = new Locale("tr", "");
                    break;
                case '\n':
                    locale = new Locale("th", "");
                    break;
                case 11:
                    locale = new Locale("uz", "");
                    break;
                case '\f':
                    locale = new Locale("vi", "");
                    break;
                case '\r':
                    locale = Locale.GERMAN;
                    break;
                case 14:
                    locale = Locale.JAPANESE;
                    break;
                case 15:
                    locale = Locale.KOREAN;
                    break;
                case 16:
                    locale = Locale.FRENCH;
                    break;
                default:
                    locale = Locale.ENGLISH;
                    break;
            }
            a.b = locale;
            boolean z = this.IL1lI11I.i;
            this.iLLiL1il11l = z;
            sg.bigo.ads.common.form.c a = sg.bigo.ads.common.form.c.a(this, f, this.ilIiIIIliILIi, z, this.iIlLII1LiL1IL, this.Ilil111lI, this);
            this.IliiIIIi11LLl = a;
            obj = null;
            try {
                u.a(a.b, frameLayout, null, -1);
                this.IliiIIIi11LLl.c.c();
            } catch (Throwable th) {
                th = th;
                c<?, ?> cVar2 = this.IL1lI11I;
                sg.bigo.ads.core.d.b.a((sg.bigo.ads.api.core.c) (cVar2 != null ? cVar2.f() : obj), 3000, 10221, Log.getStackTraceString(th));
                finish();
            }
        } catch (Throwable th2) {
            th = th2;
            obj = null;
        }
    }

    @Override
    @CallSuper
    public void onDestroy() {
        sg.bigo.ads.common.form.c cVar;
        b bVar;
        super.onDestroy();
        try {
            if (this.IL1lI11I != null && (cVar = this.IliiIIIi11LLl) != null && (bVar = cVar.a) != null) {
                Map<String, Object> a = a.a(bVar.b, bVar.c.b(), bVar.c.a());
                boolean z = this.iLLiL1il11l;
                if (!z) {
                    a.a(this.Ilil111lI, a);
                } else if (z) {
                    a.a(this.Ilil111lI, 3);
                }
            }
        } catch (Throwable unused) {
        }
    }
}