修复指导员切换账号提示问题
This commit is contained in:
parent
a453a526fa
commit
1d660f6f39
@ -178,6 +178,8 @@ public class IMLoginManager extends BaseCacheManager {
|
|||||||
deleteByKey(KEY_USER_INFO);
|
deleteByKey(KEY_USER_INFO);
|
||||||
deleteByKey(isNewUserGif);
|
deleteByKey(isNewUserGif);
|
||||||
deleteByKey(isNewUserOne);
|
deleteByKey(isNewUserOne);
|
||||||
|
//清理指导员信息
|
||||||
|
NoviceInstructorManager.get(context).deleteOfLogin();
|
||||||
//用户对象置空
|
//用户对象置空
|
||||||
userInfo = null;
|
userInfo = null;
|
||||||
manager = null;
|
manager = null;
|
||||||
|
@ -124,6 +124,12 @@ public class NoviceInstructorManager extends BaseCacheManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//登出时清理指导员信息
|
||||||
|
public void deleteOfLogin() {
|
||||||
|
deleteByKey(KEY_NOVICE_INSTRUCTOR);
|
||||||
|
EventBus.getDefault().post(new NoviceInstructorEvent().setShowHomeIcon(false));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 请求接口获取是否展示
|
* 请求接口获取是否展示
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user