Commit 1bccbe450ceb40c733a95b2e5d1e6db5cfe987cf
1 parent
bee22bf9
1 修改配网完成逻辑
Showing
3 changed files
with
5 additions
and
1 deletions
config.gradle
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/frame/view/SelectWifiFragmentView.java
| @@ -212,6 +212,7 @@ public class SelectWifiFragmentView implements MvpView { | @@ -212,6 +212,7 @@ public class SelectWifiFragmentView implements MvpView { | ||
| 212 | // 连接失败 | 212 | // 连接失败 |
| 213 | @Override | 213 | @Override |
| 214 | public void onConnectFail(BleDevice bleDevice, BleException exception) { | 214 | public void onConnectFail(BleDevice bleDevice, BleException exception) { |
| 215 | + QMUITipDialogUtil.dismessDialog(); | ||
| 215 | AlertUtil.showDeftToast(getContext(), "连接失败,请重试..."); | 216 | AlertUtil.showDeftToast(getContext(), "连接失败,请重试..."); |
| 216 | Log.e(TAG, "onConnectFail: " + exception); | 217 | Log.e(TAG, "onConnectFail: " + exception); |
| 217 | } | 218 | } |
| @@ -257,6 +258,7 @@ public class SelectWifiFragmentView implements MvpView { | @@ -257,6 +258,7 @@ public class SelectWifiFragmentView implements MvpView { | ||
| 257 | @Override | 258 | @Override |
| 258 | public void onNotifyFailure(BleException exception) { | 259 | public void onNotifyFailure(BleException exception) { |
| 259 | Log.e(TAG, "onNotifyFailure: " + exception); | 260 | Log.e(TAG, "onNotifyFailure: " + exception); |
| 261 | + QMUITipDialogUtil.dismessDialog(); | ||
| 260 | AlertUtil.showDeftToast(getContext(), "连接失败,请重试..."); | 262 | AlertUtil.showDeftToast(getContext(), "连接失败,请重试..."); |
| 261 | } | 263 | } |
| 262 | 264 |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/model/message/EventMsg.java
| @@ -6,6 +6,8 @@ public class EventMsg { | @@ -6,6 +6,8 @@ public class EventMsg { | ||
| 6 | public static final int CLOSE_BLUETOOTH_ACTIVITY = 2;//关闭配网页面 | 6 | public static final int CLOSE_BLUETOOTH_ACTIVITY = 2;//关闭配网页面 |
| 7 | public static final int INVIT_FRIEND_SUCCESS = 3;//邀请好友成功页面 | 7 | public static final int INVIT_FRIEND_SUCCESS = 3;//邀请好友成功页面 |
| 8 | public static final int GO_TO_CHINA_LISTEN_PAGE = 4;//邀请好友成功页面 | 8 | public static final int GO_TO_CHINA_LISTEN_PAGE = 4;//邀请好友成功页面 |
| 9 | + public static final int HAS_FRIEND_JOIN_FRIMALY = 5;//有好友加入家庭 | ||
| 10 | + public static final int HAS_FRIEND_REMOVE_FRIMALY = 6;//有好友移除家庭 | ||
| 9 | 11 | ||
| 10 | private int eventType; | 12 | private int eventType; |
| 11 | private Object data; | 13 | private Object data; |