导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - FeedBackActivity.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 FeedBackActivity.java JAVA 源代码文件

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


package com.wifitutu.ui.setting;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import androidx.activity.result.ActivityResult;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.Group;
import androidx.lifecycle.l0;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.gson.reflect.TypeToken;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.kernel.CODE;
import com.wifitutu.link.foundation.kernel.g;
import com.wifitutu.link.foundation.kernel.h;
import com.wifitutu.link.wifi.core.feature.GENDER;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineHotLineClick;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineReplyClickEvent;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineReplyShowEvent;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineReplySubmitEvent;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineWifiServiceClick;
import com.wifitutu.tutu_monitor.api.generate.bd.BdMineWxServiceClick;
import com.wifitutu.ui.setting.a;
import com.wifitutu.widget.core.BaseActivity;
import com.wifitutu.widget.imagepicker.bean.ImageItem;
import com.wifitutu.widget.imagepicker.ui.ImageGridActivity;
import com.wifitutu.widget.imagepicker.ui.ImagePreviewDelActivity;
import com.wifitutu.widget.logger.monitor.manager.LoggerConfigEntity;
import com.wifitutu.widget.logger.monitor.manager.UploadingSource;
import com.wifitutu.widget.router.api.generate.PageLink$AppFeedBackParam;
import com.wifitutu.widget.router.api.generate.PageLink$PAGE_ID;
import com.wifitutu.widget.svc.wkconfig.config.api.generate.app.AppFeedbackType;
import com.wifitutu.widget.svc.wkconfig.config.api.generate.app.c0;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.g0;
import lg0.AbstractC1676h;
import lg0.C2537b;
import lg0.C2564b;
import lg0.C3020g0;
import lg0.C3054q;
import lg0.C3639b;
import lg0.InterfaceC2536a;
import lg0.b4;
import lg0.d4;
import lg0.d6;
import lg0.e0;
import lg0.x5;
import lg0.z4;
import os.C2603a0;
import os.C2615b4;
import os.C2645f0;
import os.C2647f2;
import os.C2662g1;
import os.C2724o2;
import os.C2736q0;
import os.C2756s5;
import os.C2780v5;
import os.EnumC2694k2;
import os.InterfaceC2605a2;
import os.InterfaceC2607a4;
import os.InterfaceC2702l2;
import os.e3;
import vj0.InterfaceC3487l0;
import vj0.n0;
import yj0.x;
import z70.a;

@Metadata(d1 = {"\u0000l\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 \u00072\b\u0012\u0004\u0012\u00020\u00020\u00012\u00020\u0003:\u0001CB\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0007\u0010\u0005J\u001f\u0010\u000b\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\bH\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u000f\u0010\r\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u000f\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u000f\u0010\u0005J\u000f\u0010\u0010\u001a\u00020\u0006H\u0014¢\u0006\u0004\b\u0010\u0010\u0005J!\u0010\u0015\u001a\u00020\u00062\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0014\u001a\u00020\u0013H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0017\u0010\u0005J\u000f\u0010\u0018\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0018\u0010\u0005J\u000f\u0010\u0019\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u0019\u0010\u0005J\u000f\u0010\u001a\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u001a\u0010\u0005J\u000f\u0010\u001b\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u001b\u0010\u0005J\u000f\u0010\u001c\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u001c\u0010\u0005R\u0016\u0010\u001f\u001a\u00020\u00138\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u001d\u0010\u001eR\u001c\u0010$\u001a\b\u0012\u0004\u0012\u00020!0 8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\"\u0010#R\u001c\u0010&\u001a\b\u0012\u0004\u0012\u00020!0 8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b%\u0010#R\u0016\u0010*\u001a\u00020'8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b(\u0010)R\u0016\u0010.\u001a\u00020+8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b,\u0010-R$\u00104\u001a\u0012\u0012\u0004\u0012\u0002000/j\b\u0012\u0004\u0012\u000200`18\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b2\u00103R\u0014\u00106\u001a\u00020\u00138\u0002X\u0082D¢\u0006\u0006\n\u0004\b5\u0010\u001eR\u0014\u00108\u001a\u00020\b8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u0019\u00107R\u001d\u0010<\u001a\u0004\u0018\u00010\b8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\r\u00109\u001a\u0004\b:\u0010;R\u0018\u0010?\u001a\u0004\u0018\u00010=8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b:\u0010>R\u0018\u0010B\u001a\u0004\u0018\u00010@8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0017\u0010A¨\u0006D"}, d2 = {"Lcom/wifitutu/ui/setting/FeedBackActivity;", "Lcom/wifitutu/widget/core/BaseActivity;", "Loq/i;", "Lcom/wifitutu/ui/setting/a$a;", "<init>", "()V", "Llg0/e0;", "b0", "", "corpId", "serviceUrl", "e0", "(Ljava/lang/String;Ljava/lang/String;)V", "Y", "()Loq/i;", "initView", "onResume", "Landroid/view/View;", "view", "", "position", "c", "(Landroid/view/View;I)V", "a0", "g0", "X", "c0", "d0", "f0", "Q", "I", "flag", "Lw0/b;", "Landroid/content/Intent;", "R", "Lw0/b;", "chooseResultLauncher", "S", "previewResultLauncher", "Lcom/wifitutu/ui/setting/a;", "T", "Lcom/wifitutu/ui/setting/a;", "pickerAdapter", "Lo10/b;", "U", "Lo10/b;", "viewModel", "Ljava/util/ArrayList;", "Lcom/wifitutu/widget/imagepicker/bean/ImageItem;", "Lkotlin/collections/ArrayList;", "V", "Ljava/util/ArrayList;", "mImgModels", "W", "maxImgCount", "Ljava/lang/String;", "tellPhoneNumber", "Llg0/h;", "Z", "()Ljava/lang/String;", "mPageFrom", "Landroid/widget/RadioButton;", "Landroid/widget/RadioButton;", "mSelectedFeedbackTypeView", "Lcom/wifitutu/widget/svc/wkconfig/config/api/generate/app/AppFeedbackType;", "Lcom/wifitutu/widget/svc/wkconfig/config/api/generate/app/AppFeedbackType;", "mSelectedFeedbackTypeData", "a", "tutu_app_prd"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class FeedBackActivity extends BaseActivity<oq.i> implements a.InterfaceC0387a {
    public static ChangeQuickRedirect changeQuickRedirect;

    public int flag;

    public w0.b<Intent> chooseResultLauncher;

    public w0.b<Intent> previewResultLauncher;

    public a pickerAdapter;

    public C2564b viewModel;

    public final ArrayList<ImageItem> mImgModels = new ArrayList<>();

    public final int maxImgCount = 4;

    public final String tellPhoneNumber = "4000358000";

    public final lg0.h mPageFrom = lg0.i.a(new r());

    public RadioButton mSelectedFeedbackTypeView;

    public AppFeedbackType mSelectedFeedbackTypeData;

    @Metadata(d1 = {"\u0000\u001c\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\b\u001a\u00020\u0007\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000\"\n\b\u0001\u0010\u0002\u0018\u0001*\u00020\u00002\u0006\u0010\u0004\u001a\u00020\u00032\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00030\u0005H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"", "T_MODEL_RSPN", "T_MODEL_REQ", "Los/a2;", "data", "Lqs/q;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Los/a2;Lqs/q;)V"}, k = 3, mv = {1, 8, 0})
    public static final class b extends kotlin.jvm.internal.p implements ah0.p<InterfaceC2605a2, C3054q<InterfaceC2605a2>, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final com.wifitutu.link.foundation.kernel.a s;

        @Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/wifitutu/link/foundation/kernel/AJson$parseOrNull$1", "Lcom/google/gson/reflect/TypeToken;", "lib-kernel_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
        public static final class a extends TypeToken<a.c> {
        }

        public b(com.wifitutu.link.foundation.kernel.a aVar) {
            super(2);
            this.s = aVar;
        }

        public final void a(InterfaceC2605a2 interfaceC2605a2, C3054q<InterfaceC2605a2> c3054q) {
            Object obj;
            if (PatchProxy.proxy(new Object[]{interfaceC2605a2, c3054q}, this, changeQuickRedirect, false, 27897, new Class[]{InterfaceC2605a2.class, C3054q.class}, Void.TYPE).isSupported) {
                return;
            }
            C2780v5 c2780v5 = new C2780v5();
            c2780v5.d(CODE.INSTANCE.a(interfaceC2605a2.getCode()));
            String message = interfaceC2605a2.getMessage();
            if (message == null) {
                message = c2780v5.getCode().getMessage();
            }
            c2780v5.f(message);
            if (c2780v5.getCode() == CODE.OK) {
                b4 b4Var = b4.c;
                String data = interfaceC2605a2.getData();
                Object obj2 = null;
                if (data != null && data.length() != 0) {
                    try {
                        Iterator<T> it = x5.c().iterator();
                        while (true) {
                            if (!it.hasNext()) {
                                obj = null;
                                break;
                            }
                            obj = it.next();
                            C3020g0 c3020g0 = (C3020g0) obj;
                            if (kotlin.jvm.internal.n.d(g0.b(a.c.class), c3020g0) ? true : c3020g0.b(g0.b(a.c.class))) {
                                break;
                            }
                        }
                        obj2 = obj != null ? b4Var.b().g(data, new a().getType()) : b4Var.b().e(data, a.c.class);
                    } catch (Throwable th) {
                        ah0.l<Throwable, e0> a2 = b4Var.a();
                        if (a2 != null) {
                            a2.invoke(th);
                        }
                    }
                }
                c2780v5.e(obj2);
            }
            h.a.a(this.s, c2780v5, false, 0L, 6, null);
            this.s.close();
        }

        @Override
        public e0 invoke(InterfaceC2605a2 interfaceC2605a2, C3054q<InterfaceC2605a2> c3054q) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC2605a2, c3054q}, this, changeQuickRedirect, false, 27898, new Class[]{Object.class, Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(interfaceC2605a2, c3054q);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0006\u001a\u00020\u00052\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u00002\u0012\u0010\u0004\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u00000\u0003H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"Los/v5;", "Lz70/a$c;", "data", "Lqs/z4;", "proxy", "Llg0/e0;", "a", "(Los/v5;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
    public static final class c extends kotlin.jvm.internal.p implements ah0.p<C2780v5<a.c>, z4<C2780v5<a.c>>, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public c() {
            super(2);
        }

        public final void a(C2780v5<a.c> c2780v5, z4<C2780v5<a.c>> z4Var) {
            if (PatchProxy.proxy(new Object[]{c2780v5, z4Var}, this, changeQuickRedirect, false, 27899, new Class[]{C2780v5.class, z4.class}, Void.TYPE).isSupported) {
                return;
            }
            if (c2780v5.getCode().getIsOk()) {
                fc0.s.e(FeedBackActivity.this.getString(2131886566));
            } else {
                fc0.s.e(FeedBackActivity.this.getString(2131886267));
            }
        }

        @Override
        public e0 invoke(C2780v5<a.c> c2780v5, z4<C2780v5<a.c>> z4Var) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c2780v5, z4Var}, this, changeQuickRedirect, false, 27900, new Class[]{Object.class, Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(c2780v5, z4Var);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class d extends kotlin.jvm.internal.p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "v", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
        public static final class a implements View.OnClickListener {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final FeedBackActivity a;
            public final AppFeedbackType b;

            public a(FeedBackActivity feedBackActivity, AppFeedbackType appFeedbackType) {
                this.a = feedBackActivity;
                this.b = appFeedbackType;
            }

            @Override
            public final void onClick(View view) {
                if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27903, new Class[]{View.class}, Void.TYPE).isSupported) {
                    return;
                }
                if ((view instanceof RadioButton ? (RadioButton) view : null) != null) {
                    FeedBackActivity feedBackActivity = this.a;
                    AppFeedbackType appFeedbackType = this.b;
                    RadioButton radioButton = feedBackActivity.mSelectedFeedbackTypeView;
                    if (radioButton != null) {
                        radioButton.setChecked(false);
                    }
                    if (kotlin.jvm.internal.n.d(feedBackActivity.mSelectedFeedbackTypeView, view)) {
                        feedBackActivity.mSelectedFeedbackTypeData = null;
                        feedBackActivity.mSelectedFeedbackTypeView = null;
                        feedBackActivity.L().G.setHint(2131886575);
                    } else {
                        feedBackActivity.mSelectedFeedbackTypeData = appFeedbackType;
                        feedBackActivity.mSelectedFeedbackTypeView = (RadioButton) view;
                        feedBackActivity.L().G.setHint(appFeedbackType.getDesc());
                    }
                }
            }
        }

        public d() {
            super(0);
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27902, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            int i = 0;
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27901, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            List<AppFeedbackType> feedbackType = com.wifitutu.widget.svc.wkconfig.config.api.generate.app.a.a(C2736q0.a(C2647f2.d())).getFeedbackType();
            Group group = FeedBackActivity.this.L().N;
            List list = feedbackType;
            if (list == null || list.isEmpty()) {
                i = 8;
            } else {
                ?? r4 = FeedBackActivity.this;
                for (AppFeedbackType appFeedbackType : feedbackType) {
                    View inflate = r4.getLayoutInflater().inflate(2131558729, (ViewGroup) r4.L().M, false);
                    kotlin.jvm.internal.n.g(inflate, "null cannot be cast to non-null type android.widget.RadioButton");
                    RadioButton radioButton = (RadioButton) inflate;
                    radioButton.setText(appFeedbackType.getName());
                    radioButton.setOnClickListener(new a(r4, appFeedbackType));
                    r4.L().M.addView(radioButton);
                }
            }
            group.setVisibility(i);
        }
    }

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u008a@¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lvj0/l0;", "Llg0/e0;", "<anonymous>", "(Lvj0/l0;)V"}, k = 3, mv = {1, 8, 0})
    @tg0.f(c = "com.wifitutu.ui.setting.FeedBackActivity$initGuideStatus$1", f = "FeedBackActivity.kt", l = {214}, m = "invokeSuspend")
    public static final class e extends tg0.l implements ah0.p<InterfaceC3487l0, rg0.d<? super e0>, Object> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public int a;

        @Metadata(d1 = {"\u0000\u000e\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\u008a@¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "it", "Llg0/e0;", "a", "(ZLrg0/d;)Ljava/lang/Object;"}, k = 3, mv = {1, 8, 0})
        public static final class a<T> implements yj0.d {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final FeedBackActivity a;

            public a(FeedBackActivity feedBackActivity) {
                this.a = feedBackActivity;
            }

            public final Object a(boolean z, rg0.d<? super e0> dVar) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : (byte) 0), dVar}, this, changeQuickRedirect, false, 27908, new Class[]{Boolean.TYPE, rg0.d.class}, Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                this.a.L().K.setVisibility(z ? 0 : 8);
                return e0.a;
            }

            public Object emit(Object obj, rg0.d dVar) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, dVar}, this, changeQuickRedirect, false, 27909, new Class[]{Object.class, rg0.d.class}, Object.class);
                return proxy.isSupported ? proxy.result : a(((Boolean) obj).booleanValue(), dVar);
            }
        }

        public e(rg0.d<? super e> dVar) {
            super(2, dVar);
        }

        @Override
        public final rg0.d<e0> create(Object obj, rg0.d<?> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, dVar}, this, changeQuickRedirect, false, 27905, new Class[]{Object.class, rg0.d.class}, rg0.d.class);
            return proxy.isSupported ? (rg0.d) proxy.result : FeedBackActivity.this.new e(dVar);
        }

        @Override
        public Object invoke(InterfaceC3487l0 interfaceC3487l0, rg0.d<? super e0> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC3487l0, dVar}, this, changeQuickRedirect, false, 27907, new Class[]{Object.class, Object.class}, Object.class);
            return proxy.isSupported ? proxy.result : invoke2(interfaceC3487l0, dVar);
        }

        public final Object invoke2(InterfaceC3487l0 interfaceC3487l0, rg0.d<? super e0> dVar) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{interfaceC3487l0, dVar}, this, changeQuickRedirect, false, 27906, new Class[]{InterfaceC3487l0.class, rg0.d.class}, Object.class);
            return proxy.isSupported ? proxy.result : ((e) create(interfaceC3487l0, dVar)).invokeSuspend(e0.a);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 27904, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            Object c = sg0.c.c();
            int i = this.a;
            if (i == 0) {
                lg0.o.b(obj);
                C2564b c2564b = FeedBackActivity.this.viewModel;
                if (c2564b == null) {
                    kotlin.jvm.internal.n.z("viewModel");
                    c2564b = null;
                }
                x<Boolean> r = c2564b.r();
                a aVar = new a(FeedBackActivity.this);
                this.a = 1;
                if (r.a(aVar, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                lg0.o.b(obj);
            }
            throw new lg0.d();
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/activity/result/ActivityResult;", "it", "Llg0/e0;", "b", "(Landroidx/activity/result/ActivityResult;)V"}, k = 3, mv = {1, 8, 0})
    public static final class f<O> implements w0.a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public f() {
        }

        public void a(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 27911, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            b((ActivityResult) obj);
        }

        public final void b(ActivityResult activityResult) {
            Intent a;
            if (PatchProxy.proxy(new Object[]{activityResult}, this, changeQuickRedirect, false, 27910, new Class[]{ActivityResult.class}, Void.TYPE).isSupported || activityResult.b() != 1004 || (a = activityResult.a()) == null) {
                return;
            }
            FeedBackActivity feedBackActivity = FeedBackActivity.this;
            ArrayList arrayList = feedBackActivity.mImgModels;
            Serializable serializableExtra = a.getSerializableExtra("extra_result_items");
            kotlin.jvm.internal.n.g(serializableExtra, "null cannot be cast to non-null type java.util.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem>{ kotlin.collections.TypeAliasesKt.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem> }");
            arrayList.addAll((ArrayList) serializableExtra);
            a aVar = feedBackActivity.pickerAdapter;
            if (aVar == null) {
                kotlin.jvm.internal.n.z("pickerAdapter");
                aVar = null;
            }
            aVar.g(feedBackActivity.mImgModels);
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Landroidx/activity/result/ActivityResult;", "it", "Llg0/e0;", "b", "(Landroidx/activity/result/ActivityResult;)V"}, k = 3, mv = {1, 8, 0})
    public static final class g<O> implements w0.a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public g() {
        }

        public void a(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 27913, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            b((ActivityResult) obj);
        }

        public final void b(ActivityResult activityResult) {
            Intent a;
            if (PatchProxy.proxy(new Object[]{activityResult}, this, changeQuickRedirect, false, 27912, new Class[]{ActivityResult.class}, Void.TYPE).isSupported || activityResult.b() != 1005 || (a = activityResult.a()) == null) {
                return;
            }
            FeedBackActivity feedBackActivity = FeedBackActivity.this;
            feedBackActivity.mImgModels.clear();
            ArrayList arrayList = feedBackActivity.mImgModels;
            Serializable serializableExtra = a.getSerializableExtra("extra_image_items");
            kotlin.jvm.internal.n.g(serializableExtra, "null cannot be cast to non-null type java.util.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem>{ kotlin.collections.TypeAliasesKt.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem> }");
            arrayList.addAll((ArrayList) serializableExtra);
            a aVar = feedBackActivity.pickerAdapter;
            if (aVar == null) {
                kotlin.jvm.internal.n.z("pickerAdapter");
                aVar = null;
            }
            aVar.g(feedBackActivity.mImgModels);
        }
    }

    @Metadata(d1 = {"\u0000%\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\r\n\u0000\n\u0002\u0010\b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0019\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016¢\u0006\u0004\b\u0005\u0010\u0006J1\u0010\r\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\tH\u0016¢\u0006\u0004\b\r\u0010\u000eJ1\u0010\u0010\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\tH\u0016¢\u0006\u0004\b\u0010\u0010\u000e¨\u0006\u0011"}, d2 = {"com/wifitutu/ui/setting/FeedBackActivity$h", "Landroid/text/TextWatcher;", "Landroid/text/Editable;", "s", "Llg0/e0;", "afterTextChanged", "(Landroid/text/Editable;)V", "", "text", "", "start", "count", "after", "beforeTextChanged", "(Ljava/lang/CharSequence;III)V", "before", "onTextChanged", "core-ktx_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class h implements TextWatcher {
        public static ChangeQuickRedirect changeQuickRedirect;

        public h() {
        }

        @Override
        public void afterTextChanged(Editable s) {
            if (PatchProxy.proxy(new Object[]{s}, this, changeQuickRedirect, false, 27914, new Class[]{Editable.class}, Void.TYPE).isSupported) {
                return;
            }
            FeedBackActivity.this.flag = (s == null || s.length() <= 0) ? FeedBackActivity.this.flag & 6 : FeedBackActivity.this.flag | 1;
            FeedBackActivity.access$updateFlag(FeedBackActivity.this);
        }

        @Override
        public void beforeTextChanged(CharSequence text, int start, int count, int after) {
        }

        @Override
        public void onTextChanged(CharSequence text, int start, int before, int count) {
        }
    }

    @Metadata(d1 = {"\u0000%\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\r\n\u0000\n\u0002\u0010\b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0019\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016¢\u0006\u0004\b\u0005\u0010\u0006J1\u0010\r\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\tH\u0016¢\u0006\u0004\b\r\u0010\u000eJ1\u0010\u0010\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\tH\u0016¢\u0006\u0004\b\u0010\u0010\u000e¨\u0006\u0011"}, d2 = {"com/wifitutu/ui/setting/FeedBackActivity$i", "Landroid/text/TextWatcher;", "Landroid/text/Editable;", "s", "Llg0/e0;", "afterTextChanged", "(Landroid/text/Editable;)V", "", "text", "", "start", "count", "after", "beforeTextChanged", "(Ljava/lang/CharSequence;III)V", "before", "onTextChanged", "core-ktx_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class i implements TextWatcher {
        public static ChangeQuickRedirect changeQuickRedirect;

        public i() {
        }

        @Override
        public void afterTextChanged(Editable s) {
            if (PatchProxy.proxy(new Object[]{s}, this, changeQuickRedirect, false, 27915, new Class[]{Editable.class}, Void.TYPE).isSupported) {
                return;
            }
            FeedBackActivity.this.flag = (s == null || s.length() <= 0) ? FeedBackActivity.this.flag & 5 : FeedBackActivity.this.flag | 2;
            FeedBackActivity.access$updateFlag(FeedBackActivity.this);
        }

        @Override
        public void beforeTextChanged(CharSequence text, int start, int count, int after) {
        }

        @Override
        public void onTextChanged(CharSequence text, int start, int before, int count) {
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0002\u001a\u0004\u0018\u00018\u0000\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Ljava/io/Serializable;", "T", "a", "()Ljava/io/Serializable;"}, k = 3, mv = {1, 8, 0})
    public static final class j extends kotlin.jvm.internal.p implements ah0.a<PageLink$AppFeedBackParam> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Intent s;
        public final String t;

        public j(Intent intent, String str) {
            super(0);
            this.s = intent;
            this.t = str;
        }

        public final PageLink$AppFeedBackParam a() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27916, new Class[0], Serializable.class);
            return proxy.isSupported ? (Serializable) proxy.result : Build.VERSION.SDK_INT >= 33 ? this.s.getSerializableExtra(this.t, PageLink$AppFeedBackParam.class) : (Serializable) d4.j(this.s.getSerializableExtra(this.t), g0.b(PageLink$AppFeedBackParam.class), true);
        }

        @Override
        public PageLink$AppFeedBackParam invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27917, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : a();
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class k implements View.OnClickListener {
        public static final k a = new k();
        public static ChangeQuickRedirect changeQuickRedirect;

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27920, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            InterfaceC2607a4 d = C2615b4.d(C2647f2.d());
            C3639b c3639b = new C3639b(null, 1, null);
            c3639b.q(PageLink$PAGE_ID.OPEN_WIFI_SERVICE_QR_CODE.getValue());
            d.V(c3639b);
            AbstractC1676h.INSTANCE.c(new BdMineWifiServiceClick());
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "a", "(Ljava/lang/Boolean;)V"}, k = 3, mv = {1, 8, 0})
    public static final class l<T> implements androidx.lifecycle.x {
        public static ChangeQuickRedirect changeQuickRedirect;

        public l() {
        }

        public final void a(Boolean bool) {
            if (PatchProxy.proxy(new Object[]{bool}, this, changeQuickRedirect, false, 27918, new Class[]{Boolean.class}, Void.TYPE).isSupported || bool.booleanValue()) {
                return;
            }
            C2564b c2564b = FeedBackActivity.this.viewModel;
            if (c2564b == null) {
                kotlin.jvm.internal.n.z("viewModel");
                c2564b = null;
            }
            c2564b.o(FeedBackActivity.this.L().I);
        }

        public void d(Object obj) {
            if (PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 27919, new Class[]{Object.class}, Void.TYPE).isSupported) {
                return;
            }
            a((Boolean) obj);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class m implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public m() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27921, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            FeedBackActivity.this.finish();
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class n implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public n() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27922, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            AbstractC1676h.INSTANCE.c(new BdMineReplyClickEvent());
            InterfaceC2607a4 d = C2615b4.d(C2647f2.d());
            C3639b c3639b = new C3639b(null, 1, null);
            c3639b.l(FeedBackActivity.this);
            c3639b.q(PageLink$PAGE_ID.APP_FEED_BACK_HISTORY.getValue());
            d.V(c3639b);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class o implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public o() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27923, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            AbstractC1676h.Companion companion = AbstractC1676h.INSTANCE;
            BdMineReplySubmitEvent bdMineReplySubmitEvent = new BdMineReplySubmitEvent();
            bdMineReplySubmitEvent.a(FeedBackActivity.access$getMPageFrom(FeedBackActivity.this));
            companion.c(bdMineReplySubmitEvent);
            FeedBackActivity.access$commit(FeedBackActivity.this);
        }
    }

    @Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\b\u001a\u00020\u00052\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u00002\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"Landroid/widget/RadioGroup;", "kotlin.jvm.PlatformType", "<anonymous parameter 0>", "", "<anonymous parameter 1>", "Llg0/e0;", "onCheckedChanged", "(Landroid/widget/RadioGroup;I)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class p implements RadioGroup.OnCheckedChangeListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public p() {
        }

        @Override
        public final void onCheckedChanged(RadioGroup radioGroup, int i) {
            if (PatchProxy.proxy(new Object[]{radioGroup, new Integer(i)}, this, changeQuickRedirect, false, 27924, new Class[]{RadioGroup.class, Integer.TYPE}, Void.TYPE).isSupported) {
                return;
            }
            FeedBackActivity.this.flag |= 4;
            FeedBackActivity.access$updateFlag(FeedBackActivity.this);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class q implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        public q() {
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27925, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            AppCompatActivity appCompatActivity = FeedBackActivity.this;
            Intent intent = new Intent("android.intent.action.DIAL");
            intent.setData(Uri.parse("tel:" + FeedBackActivity.this.tellPhoneNumber));
            appCompatActivity.startActivity(intent);
            AbstractC1676h.INSTANCE.c(new BdMineHotLineClick());
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class r extends kotlin.jvm.internal.p implements ah0.a<String> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public r() {
            super(0);
        }

        @Override
        public String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27927, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : invoke();
        }

        @Override
        public final String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27926, new Class[0], String.class);
            return proxy.isSupported ? (String) proxy.result : FeedBackActivity.this.getIntent().getStringExtra("from");
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Landroid/view/View;", "kotlin.jvm.PlatformType", "it", "Llg0/e0;", "onClick", "(Landroid/view/View;)V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class s implements View.OnClickListener {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final String b;
        public final List<String> c;

        public s(String str, List<String> list) {
            this.b = str;
            this.c = list;
        }

        @Override
        public final void onClick(View view) {
            if (PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 27928, new Class[]{View.class}, Void.TYPE).isSupported) {
                return;
            }
            FeedBackActivity.access$openWxServiceChat(FeedBackActivity.this, this.b, (String) mg0.x.I0(this.c, eh0.d.a));
            AbstractC1676h.INSTANCE.c(new BdMineWxServiceClick());
        }
    }

    private final String Z() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27879, new Class[0], String.class);
        return proxy.isSupported ? (String) proxy.result : (String) this.mPageFrom.getValue();
    }

    public static final void access$commit(FeedBackActivity feedBackActivity) {
        if (PatchProxy.proxy(new Object[]{feedBackActivity}, (Object) null, changeQuickRedirect, true, 27893, new Class[]{FeedBackActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        feedBackActivity.X();
    }

    public static final String access$getMPageFrom(FeedBackActivity feedBackActivity) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{feedBackActivity}, (Object) null, changeQuickRedirect, true, 27894, new Class[]{FeedBackActivity.class}, String.class);
        return proxy.isSupported ? (String) proxy.result : feedBackActivity.Z();
    }

    public static final void access$openWxServiceChat(FeedBackActivity feedBackActivity, String str, String str2) {
        if (PatchProxy.proxy(new Object[]{feedBackActivity, str, str2}, (Object) null, changeQuickRedirect, true, 27896, new Class[]{FeedBackActivity.class, String.class, String.class}, Void.TYPE).isSupported) {
            return;
        }
        feedBackActivity.e0(str, str2);
    }

    public static final void access$updateFlag(FeedBackActivity feedBackActivity) {
        if (PatchProxy.proxy(new Object[]{feedBackActivity}, (Object) null, changeQuickRedirect, true, 27895, new Class[]{FeedBackActivity.class}, Void.TYPE).isSupported) {
            return;
        }
        feedBackActivity.g0();
    }

    private final void b0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27884, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        C2564b c2564b = this.viewModel;
        if (c2564b == null) {
            kotlin.jvm.internal.n.z("viewModel");
            c2564b = null;
        }
        c2564b.u(this);
        vj0.g.d(androidx.lifecycle.r.a(this), (rg0.g) null, (n0) null, new e(null), 3, (Object) null);
    }

    private final void e0(String corpId, String serviceUrl) {
        if (PatchProxy.proxy(new Object[]{corpId, serviceUrl}, this, changeQuickRedirect, false, 27891, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
            return;
        }
        if (!e3.b(C2662g1.a(C2647f2.d())).isSupport()) {
            C2724o2.b(C2647f2.d()).o0(getString(2131886582));
            return;
        }
        if (!e3.b(C2662g1.a(C2647f2.d())).e8()) {
            C2724o2.b(C2647f2.d()).o0(getString(2131886581));
            return;
        }
        e3.b(C2662g1.a(C2647f2.d())).de(corpId, serviceUrl);
        if (com.wifitutu.widget.svc.wkconfig.config.api.generate.clilog.a.a(C2736q0.a(C2647f2.d())).getAutoUpload() == 1) {
            InterfaceC2536a.C0857a.a(C2537b.a(C2647f2.d()), new LoggerConfigEntity(UploadingSource.AUTO, null, null, null, null, 0.0d, 62, null), null, 2, null);
        }
    }

    @Override
    public oq.i M() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27892, new Class[0], t6.a.class);
        return proxy.isSupported ? (t6.a) proxy.result : Y();
    }

    public final void X() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27886, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        String obj = L().G.getEditableText().toString();
        String obj2 = L().E.getEditableText().toString();
        GENDER gender = L().Q.isChecked() ? GENDER.MALE : GENDER.FAMALE;
        if (!TextUtils.isEmpty(obj2)) {
            C2756s5.a(C2647f2.d()).k9(EnumC2694k2.INFO_TEL_NUMBER);
        }
        if (L().Q.isChecked() || L().l0.isChecked()) {
            C2756s5.a(C2647f2.d()).k9(EnumC2694k2.INFO_SEX);
        }
        InterfaceC2702l2 c2 = com.wifitutu.link.foundation.core.a.c(C2647f2.d());
        C2603a0<a.c, a.b> b2 = u70.a.b();
        b2.e().b(obj);
        b2.e().d(gender.getValue());
        b2.e().a(obj2);
        a.b e2 = b2.e();
        AppFeedbackType appFeedbackType = this.mSelectedFeedbackTypeData;
        e2.c(appFeedbackType != null ? appFeedbackType.getName() : null);
        com.wifitutu.link.foundation.kernel.a aVar = new com.wifitutu.link.foundation.kernel.a();
        g.a.a(InterfaceC2702l2.a.a(c2, b2, false, 2, null), null, new b(aVar), 1, null);
        g.a.b(aVar, null, new c(), 1, null);
        finish();
    }

    public oq.i Y() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27880, new Class[0], oq.i.class);
        return proxy.isSupported ? (oq.i) proxy.result : oq.i.m0(getLayoutInflater());
    }

    public final void a0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27882, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        d6.k(new d());
    }

    @Override
    public void c(View view, int position) {
        if (PatchProxy.proxy(new Object[]{view, new Integer(position)}, this, changeQuickRedirect, false, 27889, new Class[]{View.class, Integer.TYPE}, Void.TYPE).isSupported) {
            return;
        }
        w0.b<Intent> bVar = null;
        if (position == -1) {
            x60.c.l().I(this.maxImgCount - this.mImgModels.size());
            x60.c.l().G(true);
            w0.b<Intent> bVar2 = this.chooseResultLauncher;
            if (bVar2 == null) {
                kotlin.jvm.internal.n.z("chooseResultLauncher");
            } else {
                bVar = bVar2;
            }
            bVar.a(new Intent((Context) this, (Class<?>) ImageGridActivity.class));
            return;
        }
        Intent intent = new Intent((Context) this, (Class<?>) ImagePreviewDelActivity.class);
        a aVar = this.pickerAdapter;
        if (aVar == null) {
            kotlin.jvm.internal.n.z("pickerAdapter");
            aVar = null;
        }
        List<ImageItem> c2 = aVar.c();
        kotlin.jvm.internal.n.g(c2, "null cannot be cast to non-null type java.util.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem>{ kotlin.collections.TypeAliasesKt.ArrayList<com.wifitutu.widget.imagepicker.bean.ImageItem> }");
        intent.putExtra("extra_image_items", (ArrayList) c2);
        intent.putExtra("selected_image_position", position);
        intent.putExtra("extra_from_items", true);
        w0.b<Intent> bVar3 = this.previewResultLauncher;
        if (bVar3 == null) {
            kotlin.jvm.internal.n.z("previewResultLauncher");
        } else {
            bVar = bVar3;
        }
        bVar.a(intent);
    }

    public final void c0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27887, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        x60.c l2 = x60.c.l();
        l2.F(new r10.a());
        l2.G(true);
        l2.K(true);
        l2.H(true);
        l2.C(false);
        kotlin.jvm.internal.n.g(this, "null cannot be cast to non-null type androidx.activity.ComponentActivity");
        this.chooseResultLauncher = registerForActivityResult(new x0.f(), new f());
        this.previewResultLauncher = registerForActivityResult(new x0.f(), new g());
    }

    public final void d0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27888, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        a aVar = new a(this, this.mImgModels, this.maxImgCount);
        this.pickerAdapter = aVar;
        aVar.h(this);
        RecyclerView recyclerView = L().T;
        a aVar2 = this.pickerAdapter;
        a aVar3 = null;
        if (aVar2 == null) {
            kotlin.jvm.internal.n.z("pickerAdapter");
            aVar2 = null;
        }
        recyclerView.setAdapter(aVar2);
        recyclerView.setLayoutManager(new GridLayoutManager(this, 4));
        a aVar4 = this.pickerAdapter;
        if (aVar4 == null) {
            kotlin.jvm.internal.n.z("pickerAdapter");
        } else {
            aVar3 = aVar4;
        }
        aVar3.g(this.mImgModels);
    }

    public final void f0() {
        List list;
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27890, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        String corpId = c0.a(C2736q0.a(C2647f2.d())).getCorpId();
        List serviceUrl = c0.a(C2736q0.a(C2647f2.d())).getServiceUrl();
        if (corpId.length() == 0 || (list = serviceUrl) == null || list.isEmpty()) {
            return;
        }
        L().d0.setVisibility(0);
        L().Z.setOnClickListener(new s(corpId, serviceUrl));
    }

    public final void g0() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27885, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        L().p0(Boolean.valueOf((this.flag & 7) == 7));
    }

    @Override
    public void initView() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27881, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.initView();
        C2564b c2564b = (C2564b) new l0(this).a(C2564b.class);
        this.viewModel = c2564b;
        if (c2564b == null) {
            kotlin.jvm.internal.n.z("viewModel");
            c2564b = null;
        }
        c2564b.t().h(this, new l());
        oq.i L = L();
        C2564b c2564b2 = this.viewModel;
        if (c2564b2 == null) {
            kotlin.jvm.internal.n.z("viewModel");
            c2564b2 = null;
        }
        L.q0(c2564b2);
        L.c0(this);
        L().R.setText(getString(2131886564));
        L().C.setOnClickListener(new m());
        L().L.setOnClickListener(new n());
        L().D.setOnClickListener(new o());
        L().G.addTextChangedListener(new h());
        L().E.addTextChangedListener(new i());
        L().h0.setOnCheckedChangeListener(new p());
        L().b0.setText(getString(2131888371, C2645f0.a(C2647f2.d()).getAppName()));
        L().W.setText("客服热线:" + this.tellPhoneNumber);
        L().V.setOnClickListener(new q());
        L().U.setOnClickListener(k.a);
        f0();
        AbstractC1676h.Companion companion = AbstractC1676h.INSTANCE;
        BdMineReplyShowEvent bdMineReplyShowEvent = new BdMineReplyShowEvent();
        bdMineReplyShowEvent.a(Z());
        companion.c(bdMineReplyShowEvent);
        c0();
        d0();
        PageLink$AppFeedBackParam pageLink$AppFeedBackParam = (PageLink$AppFeedBackParam) ((Serializable) d6.j(null, new j(getIntent(), "INTENT_ARG_PARAMS")));
        String content = pageLink$AppFeedBackParam != null ? pageLink$AppFeedBackParam.getContent() : null;
        if (content != null) {
            L().G.setText(content);
        }
        a0();
    }

    @Override
    public void onResume() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 27883, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        super.onResume();
        b0();
    }
}