package com.tencent.mm.plugin.exdevice.ui;

import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.text.style.ForegroundColorSpan;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.bp.d;
import com.tencent.mm.model.aw;
import com.tencent.mm.model.c;
import com.tencent.mm.platformtools.aa;
import com.tencent.mm.plugin.exdevice.jni.Java2CExDevice;
import com.tencent.mm.plugin.exdevice.model.ad;
import com.tencent.mm.plugin.exdevice.model.e;
import com.tencent.mm.plugin.exdevice.model.e.b;
import com.tencent.mm.plugin.exdevice.model.j;
import com.tencent.mm.plugin.exdevice.model.j.a;
import com.tencent.mm.plugin.exdevice.model.p;
import com.tencent.mm.plugin.exdevice.model.t;
import com.tencent.mm.plugin.exdevice.model.v;
import com.tencent.mm.protocal.protobuf.ajl;
import com.tencent.mm.protocal.protobuf.asr;
import com.tencent.mm.protocal.protobuf.bbv;
import com.tencent.mm.protocal.protobuf.buq;
import com.tencent.mm.protocal.protobuf.bvu;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.sdk.platformtools.at;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.storage.RegionCodeDecoder;
import com.tencent.mm.ui.MMActivity;
import com.tencent.ytcommon.BuildConfig;
import java.io.IOException;
import junit.framework.Assert;
import org.xwalk.core.XWalkFeature;

@SuppressLint({"Assert"})
public class ExdeviceBindDeviceUI extends MMActivity implements f, b {
    static final /* synthetic */ boolean $assertionsDisabled = (!ExdeviceBindDeviceUI.class.desiredAssertionStatus());
    private ProgressDialog ehJ;
    private ScrollView hJh;
    private TextView klD;
    private String lst;
    private a ltg;
    private String lxI;
    private a lyS;
    private View lyT;
    private TextView lyU;
    private ImageView lyV;
    private View lyW;
    private e lyX;
    private String lyY;
    private String lyZ;
    private TextView lyf;
    private TextView lyg;
    private boolean lza = false;
    private a lzb;
    private boolean lzc = false;
    private boolean lzd = false;
    private ListView mListView;

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        AppMethodBeat.at(this, z);
    }

    static {
        AppMethodBeat.i(19870);
        AppMethodBeat.o(19870);
    }

    public final int getLayoutId() {
        return 2130969413;
    }

    public void onCreate(Bundle bundle) {
        AppMethodBeat.i(19857);
        super.onCreate(bundle);
        setBackBtn(new OnMenuItemClickListener() {
            public final boolean onMenuItemClick(MenuItem menuItem) {
                AppMethodBeat.i(19824);
                ExdeviceBindDeviceUI.this.finish();
                AppMethodBeat.o(19824);
                return true;
            }
        });
        Intent intent = getIntent();
        this.lyY = intent.getStringExtra("device_category_id");
        this.lst = intent.getStringExtra("device_brand_name");
        this.lxI = intent.getStringExtra("device_type");
        if (this.lxI == null || this.lxI.length() == 0) {
            this.lxI = this.lst;
        }
        String stringExtra = intent.getStringExtra("device_scan_conn_proto");
        String stringExtra2 = intent.getStringExtra("device_scan_mode");
        String str = BuildConfig.FLAVOR;
        String stringExtra3 = intent.getStringExtra("device_title");
        if (bo.isNullOrNil(stringExtra3)) {
            stringExtra3 = this.mController.ylL.getString(2131299312);
        }
        if (stringExtra2.contains("SCAN_MY_DEVICE")) {
            this.lyX = e.lzu;
            str = this.mController.ylL.getString(2131299250);
        } else if (stringExtra2.compareTo("SCAN_CATALOG") == 0) {
            this.lyX = e.lzv;
            str = this.mController.ylL.getString(2131299248);
        } else {
            Assert.assertTrue(false);
        }
        setMMTitle(str);
        if (this.lyX == e.lzv) {
            this.lzc = stringExtra.contains("wifi");
            this.lzd = stringExtra.contains("blue");
            ab.i("MicroMsg.ExdeviceBindDeviceUI", "mIsScanWifi(%b), mIsScanBlue(%b)", new Object[]{Boolean.valueOf(this.lzc), Boolean.valueOf(this.lzd)});
        } else if (this.lyX == e.lzu) {
            this.lzd = true;
            this.lzc = true;
        }
        this.ltg = new 3(this);
        this.lzb = new 4(this);
        initView();
        this.klD.setText(this.mController.ylL.getString(2131299377, new Object[]{stringExtra3}));
        aw.Rg().a(1264, this);
        aw.Rg().a(1706, this);
        aw.Rg().a(1270, this);
        aw.Rg().a(1719, this);
        if (this.lzd) {
            ad.bph().a(this);
        }
        if (this.lzc) {
            j.boN().a(10, this.ltg);
            j.boN().a(11, this.lzb);
            Java2CExDevice.initWCLanDeviceLib();
        }
        AppMethodBeat.o(19857);
    }

    public void onResume() {
        AppMethodBeat.i(19858);
        super.onResume();
        ab.i("MicroMsg.ExdeviceBindDeviceUI", "onResume start scan.");
        if (this.lzd) {
            ad.bph();
            e.boJ();
        }
        if (this.lzc) {
            Java2CExDevice.startScanWCLanDevice(new byte[0], XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION);
        }
        this.lyS.bpE();
        this.lyS.notifyDataSetChanged();
        AppMethodBeat.o(19858);
    }

    public final void initView() {
        AppMethodBeat.i(19859);
        this.mListView = (ListView) findViewById(2131821698);
        View inflate = View.inflate(this, 2130969415, null);
        this.lyW = View.inflate(this, 2130969448, null);
        this.lyT = this.lyW.findViewById(2131823631);
        this.klD = (TextView) this.lyW.findViewById(2131823632);
        this.lyU = (TextView) findViewById(2131823630);
        this.lyV = (ImageView) findViewById(2131823626);
        this.lyf = (TextView) findViewById(2131823627);
        this.lyg = (TextView) findViewById(2131823628);
        this.hJh = (ScrollView) findViewById(2131823642);
        this.mListView.addHeaderView(inflate, null, false);
        this.mListView.addFooterView(this.lyW, null, false);
        this.lyS = new a(this.lst, this.lyX, this.lyY);
        this.mListView.setAdapter(this.lyS);
        this.mListView.setOnItemClickListener(new 5(this));
        if (this.lzd && !this.lzc) {
            if (!com.tencent.mm.plugin.d.a.e.a.dv(this.mController.ylL)) {
                ab.i("MicroMsg.ExdeviceBindDeviceUI", "now sdk version not support ble device : %d", new Object[]{Integer.valueOf(VERSION.SDK_INT)});
                uM(4);
                AppMethodBeat.o(19859);
                return;
            } else if (!com.tencent.mm.plugin.d.a.e.a.aVH()) {
                ab.i("MicroMsg.ExdeviceBindDeviceUI", "Bluetooth is not open, Just leave");
                uM(3);
                AppMethodBeat.o(19859);
                return;
            }
        }
        if (!this.lzd && this.lzc && !at.isWifi(this.mController.ylL)) {
            ab.i("MicroMsg.ExdeviceBindDeviceUI", "wifi is not open, Just leave");
            uM(5);
            AppMethodBeat.o(19859);
        } else if (this.lyX == e.lzu) {
            uM(0);
            AppMethodBeat.o(19859);
        } else {
            if (this.lyX != e.lzv) {
                e eVar = e.lzt;
                Assert.assertTrue(false);
            } else if (this.lzd && this.lzc) {
                Assert.assertTrue(false);
                uM(1);
                AppMethodBeat.o(19859);
                return;
            } else if (this.lzd) {
                uM(2);
                AppMethodBeat.o(19859);
                return;
            } else if (this.lzc) {
                uM(1);
                AppMethodBeat.o(19859);
                return;
            }
            AppMethodBeat.o(19859);
        }
    }

    public void onPause() {
        AppMethodBeat.i(19860);
        super.onPause();
        ab.i("MicroMsg.ExdeviceBindDeviceUI", "onPause stop scan.");
        if (this.lzc) {
            Java2CExDevice.stopScanWCLanDevice();
        }
        if (this.lzd) {
            ad.bpi().stopScan();
        }
        AppMethodBeat.o(19860);
    }

    public void onDestroy() {
        AppMethodBeat.i(19861);
        super.onDestroy();
        if (this.lzc) {
            aw.RS().aa(new 6(this));
            j.boN().b(10, this.ltg);
            j.boN().b(11, this.lzb);
        }
        if (this.lzd) {
            ad.bph().b(this);
            ad.bpi().stopScan();
        }
        aw.Rg().b(1264, this);
        aw.Rg().b(1706, this);
        aw.Rg().b(1270, this);
        aw.Rg().b(1719, this);
        AppMethodBeat.o(19861);
    }

    public final void p(String str, String str2, boolean z) {
        AppMethodBeat.i(19862);
        ab.d("MicroMsg.ExdeviceBindDeviceUI", "onScanResult, broadcastName(%s), mac(%s), isCompleted(%b).", new Object[]{str, str2, Boolean.valueOf(z)});
        if (bo.isNullOrNil(str2)) {
            ab.e("MicroMsg.ExdeviceBindDeviceUI", "onScanResult failed, broadcastName(%s), mac(%s), isCompleted(%b).", new Object[]{str, str2, Boolean.valueOf(z)});
            AppMethodBeat.o(19862);
            return;
        }
        f fVar = new f(this, (byte) 0);
        fVar.lzy = b.lzq;
        fVar.lzz = new c(this, (byte) 0);
        fVar.lzz.lzs = str;
        fVar.lzz.cbq = com.tencent.mm.plugin.exdevice.j.b.if(com.tencent.mm.plugin.exdevice.j.b.KK(str2));
        al.d(new 7(this, fVar));
        AppMethodBeat.o(19862);
    }

    public final void c(String str, int i, long j) {
    }

    public final void b(String str, byte[] bArr, boolean z) {
    }

    public void onSceneEnd(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(19863);
        ab.i("MicroMsg.ExdeviceBindDeviceUI", "onSceneEnd, errType(%d) errCode(%d) errMsg(%s).", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), str});
        if (mVar == null) {
            ab.e("MicroMsg.ExdeviceBindDeviceUI", "onSceneEnd, scene is null.");
            AppMethodBeat.o(19863);
            return;
        }
        al.d(new 8(this, i, i2, str, mVar));
        AppMethodBeat.o(19863);
    }

    /* Access modifiers changed, original: final */
    public final void a(f fVar) {
        AppMethodBeat.i(19864);
        if (this.lyS.KB(fVar.getKey())) {
            AppMethodBeat.o(19864);
            return;
        }
        ab.d("MicroMsg.ExdeviceBindDeviceUI", "Add device: " + fVar.bpF());
        a aVar = this.lyS;
        if (!(fVar == null || aVar.KB(fVar.getKey()))) {
            fVar.lzx = aVar.c(fVar);
            aVar.lzl.add(fVar);
        }
        this.lyS.notifyDataSetChanged();
        if (fVar.lzy == b.lzq) {
            ab.i("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchBLEHardDevice doScene, mac(%s), brandName(%s),categoryId(%s)", new Object[]{fVar.lzz.cbq, this.lst, this.lyY});
            aw.Rg().a(new t(fVar.lzz.cbq, this.lst, this.lyY), 0);
            AppMethodBeat.o(19864);
        } else if (fVar.lzy == b.lzp) {
            ab.i("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchWiFiHardDevice doScene, deviceType(%s), deviceId(%s)", new Object[]{fVar.lzA.lxI, fVar.lzA.lsu});
            aw.Rg().a(new v(fVar.lzA.lxI, fVar.lzA.lsu, fVar.lzF), 0);
            AppMethodBeat.o(19864);
        } else {
            Assert.assertTrue(false);
            AppMethodBeat.o(19864);
        }
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        AppMethodBeat.i(19865);
        this.lyS.bpE();
        this.lyS.notifyDataSetChanged();
        AppMethodBeat.o(19865);
    }

    private void uM(int i) {
        AppMethodBeat.i(19866);
        String string;
        String string2;
        SpannableString spannableString;
        switch (i) {
            case 0:
                string = getString(2131299263);
                SpannableString spannableString2 = new SpannableString(string);
                spannableString2.setSpan(new ForegroundColorSpan(2131690208), 0, string.length(), 33);
                spannableString2.setSpan(new 9(this), 0, string.length(), 33);
                this.lyU.setMovementMethod(LinkMovementMethod.getInstance());
                this.lyU.setText(spannableString2);
                break;
            case 1:
                string = getString(2131299268);
                string2 = getString(2131299297);
                spannableString = new SpannableString(string + string2);
                spannableString.setSpan(new ForegroundColorSpan(2131690208), string.length(), string.length() + string2.length(), 33);
                spannableString.setSpan(new 2(this), string.length(), string.length() + string2.length(), 33);
                this.lyU.setMovementMethod(LinkMovementMethod.getInstance());
                this.lyU.setText(spannableString);
                break;
            case 2:
                string = getString(2131299267);
                string2 = getString(2131299264);
                spannableString = new SpannableString(string + string2);
                spannableString.setSpan(new ForegroundColorSpan(2131690208), string.length(), string.length() + string2.length(), 33);
                spannableString.setSpan(new 10(this), string.length(), string.length() + string2.length(), 33);
                this.lyU.setMovementMethod(LinkMovementMethod.getInstance());
                this.lyU.setText(spannableString);
                break;
        }
        switch (i) {
            case 0:
            case 1:
            case 2:
            case 3:
                this.lyV.setImageResource(2131230978);
                this.lyf.setText(2131299276);
                this.lyg.setText(2131299260);
                break;
            case 4:
                this.lyV.setImageResource(2131230978);
                this.lyf.setText(2131299274);
                this.lyg.setText(BuildConfig.FLAVOR);
                break;
            case 5:
                this.lyV.setImageResource(2131232181);
                this.lyf.setText(2131299276);
                this.lyg.setText(2131299271);
                break;
        }
        switch (i) {
            case 0:
            case 1:
            case 2:
                this.lyT.setVisibility(0);
                this.mListView.setVisibility(0);
                this.lyU.setVisibility(0);
                this.lyV.setVisibility(8);
                this.lyf.setVisibility(8);
                this.lyg.setVisibility(8);
                AppMethodBeat.o(19866);
                return;
            case 3:
            case 4:
            case 5:
                this.hJh.setVisibility(8);
                this.lyT.setVisibility(8);
                this.mListView.setVisibility(8);
                this.lyU.setVisibility(8);
                this.lyV.setVisibility(0);
                this.lyf.setVisibility(0);
                if (i != 4) {
                    this.lyg.setVisibility(0);
                    break;
                }
                this.lyg.setVisibility(8);
                AppMethodBeat.o(19866);
                return;
        }
        AppMethodBeat.o(19866);
    }

    static /* synthetic */ void a(ExdeviceBindDeviceUI exdeviceBindDeviceUI, f fVar) {
        AppMethodBeat.i(19867);
        Intent intent = new Intent(exdeviceBindDeviceUI, ExdeviceDeviceProfileUI.class);
        asr asr = fVar.lzC;
        intent.putExtra("device_mac", asr.vKF);
        intent.putExtra("device_brand_name", asr.wwm);
        intent.putExtra("device_desc", asr.wwu);
        intent.putExtra("device_title", asr.wwt);
        intent.putExtra("device_icon_url", asr.IconUrl);
        intent.putExtra("device_alias", asr.guS);
        intent.putExtra("device_jump_url", asr.mZj);
        intent.putExtra("bind_ticket", fVar.lyG);
        intent.putExtra("device_type", fVar.lzB.vIk);
        intent.putExtra("device_id", fVar.lzB.jBE);
        intent.putExtra("hide_device_panel", true);
        intent.putExtra("subscribe_flag", fVar.lzD);
        if (fVar.lzy == b.lzq) {
            intent.putExtra("device_ble_simple_proto", asr.dFq);
        } else if (fVar.lzy != b.lzp) {
            Assert.assertTrue(false);
            AppMethodBeat.o(19867);
            return;
        }
        exdeviceBindDeviceUI.startActivityForResult(intent, 0);
        AppMethodBeat.o(19867);
    }

    static /* synthetic */ void b(ExdeviceBindDeviceUI exdeviceBindDeviceUI, f fVar) {
        AppMethodBeat.i(19868);
        if (fVar == null) {
            ab.e("MicroMsg.ExdeviceBindDeviceUI", "Device == null");
            AppMethodBeat.o(19868);
        } else if (fVar.lzE == null) {
            ab.e("MicroMsg.ExdeviceBindDeviceUI", "Device.contact == null");
            AppMethodBeat.o(19868);
        } else {
            bbv bbv = fVar.lzE;
            aw.ZK();
            com.tencent.mm.storage.ad aoO = c.XM().aoO(aa.a(bbv.wcB));
            Intent intent = new Intent();
            intent.putExtra("device_id", fVar.lzB.jBE);
            intent.putExtra("device_type", fVar.lzB.vIk);
            intent.putExtra("Contact_User", aa.a(bbv.wcB));
            intent.putExtra("Contact_Scene", bbv.wbF);
            intent.putExtra("KIsHardDevice", true);
            intent.putExtra("KHardDeviceBindTicket", fVar.lyG);
            if (aoO != null) {
                if (!com.tencent.mm.n.a.jh(aoO.field_type)) {
                    intent.putExtra("Contact_Alias", bbv.guS);
                    intent.putExtra("Contact_Nick", bbv.wyX.toString());
                    intent.putExtra("Contact_Signature", bbv.guQ);
                    intent.putExtra("Contact_RegionCode", RegionCodeDecoder.aC(bbv.guW, bbv.guO, bbv.guP));
                    intent.putExtra("Contact_Sex", bbv.guN);
                    intent.putExtra("Contact_VUser_Info", bbv.wBU);
                    intent.putExtra("Contact_VUser_Info_Flag", bbv.wBT);
                    intent.putExtra("Contact_KWeibo_flag", bbv.wBX);
                    intent.putExtra("Contact_KWeibo", bbv.wBV);
                    intent.putExtra("Contact_KWeiboNick", bbv.wBW);
                    if (bbv.wCa != null) {
                        try {
                            intent.putExtra("Contact_customInfo", bbv.wCa.toByteArray());
                        } catch (IOException e) {
                            ab.printErrStackTrace("MicroMsg.ExdeviceBindDeviceUI", e, BuildConfig.FLAVOR, new Object[0]);
                        }
                    }
                }
                d.b(exdeviceBindDeviceUI.mController.ylL, "profile", ".ui.ContactInfoUI", intent);
            }
            AppMethodBeat.o(19868);
        }
    }

    static /* synthetic */ void a(ExdeviceBindDeviceUI exdeviceBindDeviceUI, int i, int i2, String str, m mVar) {
        AppMethodBeat.i(19869);
        f KC;
        if (mVar instanceof p) {
            if (exdeviceBindDeviceUI.ehJ != null && exdeviceBindDeviceUI.ehJ.isShowing()) {
                exdeviceBindDeviceUI.ehJ.dismiss();
            }
            exdeviceBindDeviceUI.lza = false;
            p pVar = (p) mVar;
            if (!(i == 0 && i2 == 0)) {
                ab.e("MicroMsg.ExdeviceBindDeviceUI", "NetSceneGetHardDeviceHelpUrl onSceneEnd, errType(%d) errCode(%d) errMsg(%s).", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), str});
            }
            exdeviceBindDeviceUI.lyZ = ((ajl) pVar.ehh.fsH.fsP).wpj;
            String str2 = exdeviceBindDeviceUI.lyZ;
            if (bo.isNullOrNil(str2)) {
                ab.i("MicroMsg.ExdeviceBindDeviceUI", "Jump to webview failed, url is null or nil.");
                AppMethodBeat.o(19869);
                return;
            }
            Intent intent = new Intent();
            intent.putExtra("rawUrl", str2);
            d.b(exdeviceBindDeviceUI, "webview", ".ui.tools.WebViewUI", intent);
            AppMethodBeat.o(19869);
        } else if (mVar instanceof t) {
            buq boS = ((t) mVar).boS();
            if (i != 0 || i2 != 0) {
                ab.e("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchBLEHardDevice onSceneEnd, errType(%d) errCode(%d) errMsg(%s).", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), str});
                AppMethodBeat.o(19869);
            } else if (boS.vLj == null) {
                ab.e("MicroMsg.ExdeviceBindDeviceUI", "HardDeviceAttr is null");
                AppMethodBeat.o(19869);
            } else {
                KC = exdeviceBindDeviceUI.lyS.KC(boS.vLj.vKF);
                if (KC == null) {
                    ab.e("MicroMsg.ExdeviceBindDeviceUI", "DiscoverDevice is null");
                    AppMethodBeat.o(19869);
                } else if (KC.lzB != null) {
                    ab.e("MicroMsg.ExdeviceBindDeviceUI", "DiscoverDevice.mHardDevice is not null");
                    AppMethodBeat.o(19869);
                } else {
                    KC.lzC = boS.vLj;
                    KC.lzB = boS.vLi;
                    KC.lyG = boS.vKK;
                    KC.lzE = boS.vKL;
                    exdeviceBindDeviceUI.lyS.b(KC);
                    exdeviceBindDeviceUI.lyS.notifyDataSetChanged();
                    ab.i("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchBLEHardDevice onSceneEnd, deviceType(%s) deviceId(%s), title(%s), mac(%s), isEnterMainDevice(%d).", new Object[]{boS.vLi.vIk, boS.vLi.jBE, boS.vLj.wwt, boS.vLj.vKF, Integer.valueOf(boS.vLj.dFp)});
                    AppMethodBeat.o(19869);
                }
            }
        } else {
            if (mVar instanceof v) {
                if (i == 0 && i2 == 0) {
                    bvu bvu = (bvu) ((v) mVar).ehh.fsH.fsP;
                    if (bvu.vLi == null) {
                        ab.e("MicroMsg.ExdeviceBindDeviceUI", "HardDevice info is null");
                        AppMethodBeat.o(19869);
                        return;
                    }
                    a aVar = exdeviceBindDeviceUI.lyS;
                    String str3 = bvu.vLi.vIk;
                    String str4 = bvu.vLi.jBE;
                    if (str3 == null || str3.length() == 0 || str4 == null || str4.length() == 0) {
                        KC = null;
                    } else {
                        int dV = aVar.dV(str3, str4);
                        if (dV < 0) {
                            KC = null;
                        } else {
                            KC = (f) aVar.lzl.get(dV);
                        }
                    }
                    if (KC == null) {
                        ab.e("MicroMsg.ExdeviceBindDeviceUI", "DiscoverDevice is null");
                        AppMethodBeat.o(19869);
                        return;
                    } else if (KC.lzB != null) {
                        ab.e("MicroMsg.ExdeviceBindDeviceUI", "DiscoverDevice.mHardDevice is not null");
                        AppMethodBeat.o(19869);
                        return;
                    } else {
                        KC.lzC = bvu.vLj;
                        KC.lzB = bvu.vLi;
                        KC.lyG = bvu.vKK;
                        KC.lzE = bvu.vKL;
                        exdeviceBindDeviceUI.lyS.b(KC);
                        exdeviceBindDeviceUI.lyS.notifyDataSetChanged();
                        ab.i("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchWiFiHardDevice onSceneEnd, deviceType(%s) deviceId(%s), title(%s), isEnterMainDevice(%d).", new Object[]{bvu.vLi.vIk, bvu.vLi.jBE, bvu.vLj.wwt, Integer.valueOf(bvu.vLj.dFp)});
                    }
                } else {
                    ab.e("MicroMsg.ExdeviceBindDeviceUI", "NetSceneSearchWiFiHardDevice onSceneEnd, errType(%d) errCode(%d) errMsg(%s).", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), str});
                    AppMethodBeat.o(19869);
                    return;
                }
            }
            AppMethodBeat.o(19869);
        }
    }
}
