Commit ec509ca0 by 刘鹏

feat : 线上问题修复

parent a5d2d185
......@@ -88,6 +88,8 @@ public class MPermission extends BaseMPermission {
}
private static void dispatchResult(Object obj, int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
//处理权限异常
try {
List<String> deniedPermissions = new ArrayList<>();
for (int i = 0; i < grantResults.length; i++) {
if (grantResults[i] != PackageManager.PERMISSION_GRANTED) {
......@@ -104,6 +106,9 @@ public class MPermission extends BaseMPermission {
} else {
doExecuteSuccess(obj, requestCode);
}
} catch (Exception e) {
e.printStackTrace();
}
}
/**
......
......@@ -86,10 +86,15 @@ class NewMultiMessageFragment : BaseFragment() {
override fun onResume() {
super.onResume()
getMsgData()
try {
NIMClient.getService(MsgService::class.java).setChattingAccount(
MsgService.MSG_CHATTING_ACCOUNT_NONE,
SessionTypeEnum.None
)
} catch (e: Exception) {
e.printStackTrace()
}
}
override fun onPause() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment