WeChat.apk(点击下载) / FinderPoiAddGuideUI.java


package com.tencent.mm.plugin.finder.feed.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.tencent.mm.R;
import com.tencent.mm.plugin.finder.ui.MMFinderUI;
import com.tencent.mm.sdk.platformtools.LocaleUtil;
import com.tencent.mm.sdk.platformtools.Log;
import com.tencent.mm.ui.x4;
import java.util.ArrayList;
import kotlin.Metadata;
import lh4.m;
import yz3.j;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI;", "Lcom/tencent/mm/plugin/finder/ui/MMFinderUI;", "<init>", "()V", "plugin-finder_release"}, k = 1, mv = {1, 7, 1})
public final class FinderPoiAddGuideUI extends MMFinderUI {

    /* renamed from: p  reason: collision with root package name */
    public CheckBox f112090p;

    /* renamed from: q  reason: collision with root package name */
    public TextView f112091q;

    /* renamed from: r  reason: collision with root package name */
    public Button f112092r;

    /* renamed from: s  reason: collision with root package name */
    public LinearLayout f112093s;

    /* renamed from: t  reason: collision with root package name */
    public ImageView f112094t;

    /* renamed from: u  reason: collision with root package name */
    public boolean f112095u;

    public static final class a implements View.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ FinderPoiAddGuideUI f112096d;

        public a(FinderPoiAddGuideUI finderPoiAddGuideUI) {
            this.f112096d = finderPoiAddGuideUI;
        }

        public final void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            CheckBox checkBox = this.f112096d.f112090p;
            if (checkBox == null) {
                m.p("checkBox");
                throw null;
            } else if (checkBox != null) {
                checkBox.setChecked(!checkBox.isChecked());
                FinderPoiAddGuideUI finderPoiAddGuideUI = this.f112096d;
                CheckBox checkBox2 = finderPoiAddGuideUI.f112090p;
                if (checkBox2 != null) {
                    finderPoiAddGuideUI.f112095u = checkBox2.isChecked();
                    FinderPoiAddGuideUI finderPoiAddGuideUI2 = this.f112096d;
                    if (finderPoiAddGuideUI2.f112095u) {
                        Button button = finderPoiAddGuideUI2.f112092r;
                        if (button != null) {
                            button.setBackgroundResource(R.drawable.f360417jk);
                            FinderPoiAddGuideUI finderPoiAddGuideUI3 = this.f112096d;
                            Button button2 = finderPoiAddGuideUI3.f112092r;
                            if (button2 != null) {
                                button2.setTextColor(finderPoiAddGuideUI3.getResources().getColor(17170443));
                            } else {
                                m.p("addButton");
                                throw null;
                            }
                        } else {
                            m.p("addButton");
                            throw null;
                        }
                    } else {
                        Button button3 = finderPoiAddGuideUI2.f112092r;
                        if (button3 != null) {
                            button3.setBackgroundResource(R.drawable.f360424jr);
                            FinderPoiAddGuideUI finderPoiAddGuideUI4 = this.f112096d;
                            Button button4 = finderPoiAddGuideUI4.f112092r;
                            if (button4 != null) {
                                button4.setTextColor(finderPoiAddGuideUI4.getResources().getColor(R.color.BW_0_Alpha_0_2));
                            } else {
                                m.p("addButton");
                                throw null;
                            }
                        } else {
                            m.p("addButton");
                            throw null;
                        }
                    }
                    j30.a.g(this, "com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
                    return;
                }
                m.p("checkBox");
                throw null;
            } else {
                m.p("checkBox");
                throw null;
            }
        }
    }

    public static final class b implements View.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ FinderPoiAddGuideUI f112097d;

        public b(FinderPoiAddGuideUI finderPoiAddGuideUI) {
            this.f112097d = finderPoiAddGuideUI;
        }

        public final void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            Intent intent = new Intent();
            intent.putExtra("rawUrl", "https://weixin.qq.com/cgi-bin/readtemplate?t=poi_claim_portal");
            sv3.b.j(this.f112097d.getContext(), "webview", ".ui.tools.WebViewUI", intent, null);
            j30.a.g(this, "com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
        }
    }

    public static final class c implements View.OnClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ FinderPoiAddGuideUI f112098d;

        public c(FinderPoiAddGuideUI finderPoiAddGuideUI) {
            this.f112098d = finderPoiAddGuideUI;
        }

        public final void onClick(View view) {
            ArrayList arrayList = new ArrayList();
            arrayList.add(view);
            Object[] array = arrayList.toArray();
            arrayList.clear();
            j30.a.b("com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array);
            if (this.f112098d.f112095u) {
                Intent intent = new Intent();
                intent.putExtra("EXTRA_FROM_GUIDE", true);
                ((com.tencent.mm.plugin.finder.utils.b) j.c(com.tencent.mm.plugin.finder.utils.b.class)).cP0(this.f112098d, intent, 0);
            } else {
                Log.i("Finder.FinderPoiAddGuideUI", "licence is not check");
            }
            j30.a.g(this, "com/tencent/mm/plugin/finder/feed/ui/FinderPoiAddGuideUI$initView$3", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V");
        }
    }

    public static final class d implements MenuItem.OnMenuItemClickListener {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ FinderPoiAddGuideUI f112099d;

        public d(FinderPoiAddGuideUI finderPoiAddGuideUI) {
            this.f112099d = finderPoiAddGuideUI;
        }

        public final boolean onMenuItemClick(MenuItem menuItem) {
            this.f112099d.finish();
            return true;
        }
    }

    @Override // com.tencent.mm.plugin.finder.ui.MMFinderUI, com.tencent.mm.ui.MMActivity
    public int getLayoutId() {
        return R.layout.f366293b52;
    }

    @Override // com.tencent.mm.ui.MMActivity
    public void initView() {
        View findViewById = findViewById(R.id.bdi);
        m.f(findViewById, "findViewById(R.id.cb_poi_license_checkbox)");
        this.f112090p = (CheckBox) findViewById;
        View findViewById2 = findViewById(R.id.oot);
        m.f(findViewById2, "findViewById(R.id.tv_poi_license_content)");
        this.f112091q = (TextView) findViewById2;
        View findViewById3 = findViewById(R.id.f362545b14);
        m.f(findViewById3, "findViewById(R.id.btn_poi_add)");
        this.f112092r = (Button) findViewById3;
        View findViewById4 = findViewById(R.id.ihy);
        m.f(findViewById4, "findViewById(R.id.ll_check_container)");
        this.f112093s = (LinearLayout) findViewById4;
        View findViewById5 = findViewById(R.id.hn5);
        m.f(findViewById5, "findViewById(R.id.iv_poi_guide)");
        this.f112094t = (ImageView) findViewById5;
        boolean z15 = !LocaleUtil.isChineseAppLang();
        if (z15) {
            ImageView imageView = this.f112094t;
            if (imageView != null) {
                imageView.setImageDrawable(getResources().getDrawable(R.drawable.c5h));
            } else {
                m.p("poiGuide");
                throw null;
            }
        } else {
            ImageView imageView2 = this.f112094t;
            if (imageView2 != null) {
                imageView2.setImageDrawable(getResources().getDrawable(R.drawable.c5g));
            } else {
                m.p("poiGuide");
                throw null;
            }
        }
        if (x4.B()) {
            if (z15) {
                ImageView imageView3 = this.f112094t;
                if (imageView3 != null) {
                    imageView3.setImageDrawable(getResources().getDrawable(R.drawable.c5j));
                } else {
                    m.p("poiGuide");
                    throw null;
                }
            } else {
                ImageView imageView4 = this.f112094t;
                if (imageView4 != null) {
                    imageView4.setImageDrawable(getResources().getDrawable(R.drawable.c5i));
                } else {
                    m.p("poiGuide");
                    throw null;
                }
            }
        }
        LinearLayout linearLayout = this.f112093s;
        if (linearLayout != null) {
            linearLayout.setOnClickListener(new a(this));
            TextView textView = this.f112091q;
            if (textView != null) {
                textView.setOnClickListener(new b(this));
                Button button = this.f112092r;
                if (button != null) {
                    button.setOnClickListener(new c(this));
                } else {
                    m.p("addButton");
                    throw null;
                }
            } else {
                m.p("licenseContent");
                throw null;
            }
        } else {
            m.p("checkContainer");
            throw null;
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.tencent.mm.plugin.finder.ui.MMFinderUI, com.tencent.mm.ui.component.UIComponentActivity, com.tencent.mm.ui.MMActivity, com.tencent.mm.hellhoundlib.activities.HellActivity, com.tencent.mm.ui.vas.VASActivity, com.tencent.mm.ui.MMFragmentActivity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setBackBtn(new d(this));
        setActionbarColor(getResources().getColor(R.color.f357929c));
        setMMTitle("");
        hideActionbarLine();
        initView();
    }
}