Commit aedde39e5ca698d495ca51d1f2d497df5460c00a
1 parent
bb3c6fb6
1 跳转到听见中国
Showing
4 changed files
with
8 additions
and
2 deletions
config.gradle
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/frame/view/UserManagerView.java
| ... | ... | @@ -145,10 +145,10 @@ public class UserManagerView implements MvpView { |
| 145 | 145 | }, "确定", new SelectDialog.DialogInterface() { |
| 146 | 146 | @Override |
| 147 | 147 | public void onClick(SelectDialog dialog) { |
| 148 | + dialog.dismiss(); | |
| 148 | 149 | fragment.getPresenter().changeMemberRole(getContext(), bean.getSid() + "", bean.getFamily_id(), null, new UserManagerPresenter.OnResposeListener() { |
| 149 | 150 | @Override |
| 150 | 151 | public void onSuccess() { |
| 151 | - dialog.dismiss(); | |
| 152 | 152 | familyRoleList.remove(position); |
| 153 | 153 | if (null != adapter) { |
| 154 | 154 | adapter.notifyDataSetChanged(); | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/model/message/EventMsg.java
| ... | ... | @@ -5,6 +5,7 @@ public class EventMsg { |
| 5 | 5 | public static final int DELETE_DEVICE_NAME_SUCCESS = 1;//删除设备成功 |
| 6 | 6 | public static final int CLOSE_BLUETOOTH_ACTIVITY = 2;//关闭配网页面 |
| 7 | 7 | public static final int INVIT_FRIEND_SUCCESS = 3;//邀请好友成功页面 |
| 8 | + public static final int GO_TO_CHINA_LISTEN_PAGE = 4;//邀请好友成功页面 | |
| 8 | 9 | |
| 9 | 10 | private int eventType; |
| 10 | 11 | private Object data; | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/activity/ConnBluetoothSuccessActivity.java
| ... | ... | @@ -14,10 +14,13 @@ import com.cnlive.libs.base.util.StatusBarUtil2; |
| 14 | 14 | import com.cnlive.strike.xiaojiaspeaker.R; |
| 15 | 15 | import com.cnlive.strike.xiaojiaspeaker.commonInfo.XiaoJIaCommInfo; |
| 16 | 16 | import com.cnlive.strike.xiaojiaspeaker.databinding.ActivityConnBluetoothSuccessBinding; |
| 17 | +import com.cnlive.strike.xiaojiaspeaker.model.message.EventMsg; | |
| 17 | 18 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.NetworkResultBean; |
| 18 | 19 | import com.daimajia.androidanimations.library.Techniques; |
| 19 | 20 | import com.daimajia.androidanimations.library.YoYo; |
| 20 | 21 | |
| 22 | +import org.greenrobot.eventbus.EventBus; | |
| 23 | + | |
| 21 | 24 | /** |
| 22 | 25 | * 音箱连接成功页面 |
| 23 | 26 | * |
| ... | ... | @@ -50,6 +53,8 @@ public class ConnBluetoothSuccessActivity extends AppCompatActivity { |
| 50 | 53 | binding.tvGoToListenChina.setOnClickListener(new View.OnClickListener() { |
| 51 | 54 | @Override |
| 52 | 55 | public void onClick(View view) { |
| 56 | + EventBus.getDefault().post(new EventMsg(EventMsg.GO_TO_CHINA_LISTEN_PAGE,"")); | |
| 57 | + finish(); | |
| 53 | 58 | } |
| 54 | 59 | }); |
| 55 | 60 | //礼物弹窗关闭 | ... | ... |