Commit 8274f8f21e9158c0004b47f4a6d831b41ba42422
1 parent
24327481
1 优化二维码占用与联系人邀请角色冲突问题
Showing
2 changed files
with
8 additions
and
1 deletions
config.gradle
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/fragment/UserManagerFragment.java
| ... | ... | @@ -97,6 +97,13 @@ public class UserManagerFragment extends MvpBindingFragment<UserManagerView, Use |
| 97 | 97 | getPresenter().getFamilyRole(getActivity(), XiaoJIaCommInfo.getUserId(getActivity()), currentSelectFamilyId, XiaoJIaCommInfo.getUserPhone(getActivity())); |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | + } //已经有角色被占用 | |
| 101 | + else if (EventMsg.HAS_ROLE_USED == msg.getEventType()) { | |
| 102 | + if (null != getMvpView()) { | |
| 103 | + if (!TextUtils.isEmpty(currentSelectFamilyId)) { | |
| 104 | + getPresenter().getFamilyRole(getActivity(), XiaoJIaCommInfo.getUserId(getActivity()), currentSelectFamilyId, XiaoJIaCommInfo.getUserPhone(getActivity())); | |
| 105 | + } | |
| 106 | + } | |
| 100 | 107 | } |
| 101 | 108 | } |
| 102 | 109 | } | ... | ... |