完善AP绑定失败逻辑
This commit is contained in:
parent
f1f144ec32
commit
bc2b17e963
|
|
@ -678,6 +678,7 @@ public class HotSpotConnentDeviceActivity extends BaseActivity {
|
|||
break;
|
||||
case NetWork.Fail:
|
||||
ToastUtil.show(HotSpotConnentDeviceActivity.this, "绑定设备失败 请重试");
|
||||
EventBus.getDefault().post(new ConnectMessageEvent(-1, "fail"));
|
||||
finish();
|
||||
break;
|
||||
case NetWork.DEVICETYPEERROR:
|
||||
|
|
|
|||
|
|
@ -342,6 +342,14 @@ public class NewBindDeviceActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
public void onEventMainThread(ConnectMessageEvent event) {
|
||||
if (event.getId() == -1){
|
||||
//绑定失败
|
||||
if (curConnectType == ConnectType.APConnect){
|
||||
showProgress(false);
|
||||
tvApConnectDevice.setVisibility(View.VISIBLE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
finish();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue