Commit 1bccbe450ceb40c733a95b2e5d1e6db5cfe987cf

Authored by YangShuai
1 parent bee22bf9

1 修改配网完成逻辑

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "0.1.19",
  24 + version: "0.1.20",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 27 //Lib库名称
... ...
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/frame/view/SelectWifiFragmentView.java
... ... @@ -212,6 +212,7 @@ public class SelectWifiFragmentView implements MvpView {
212 212 // 连接失败
213 213 @Override
214 214 public void onConnectFail(BleDevice bleDevice, BleException exception) {
  215 + QMUITipDialogUtil.dismessDialog();
215 216 AlertUtil.showDeftToast(getContext(), "连接失败,请重试...");
216 217 Log.e(TAG, "onConnectFail: " + exception);
217 218 }
... ... @@ -257,6 +258,7 @@ public class SelectWifiFragmentView implements MvpView {
257 258 @Override
258 259 public void onNotifyFailure(BleException exception) {
259 260 Log.e(TAG, "onNotifyFailure: " + exception);
  261 + QMUITipDialogUtil.dismessDialog();
260 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 public static final int CLOSE_BLUETOOTH_ACTIVITY = 2;//关闭配网页面
7 7 public static final int INVIT_FRIEND_SUCCESS = 3;//邀请好友成功页面
8 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 12 private int eventType;
11 13 private Object data;
... ...