浏览代码

android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
j8
Saúl Ibarra Corretgé 5 年前
父节点
当前提交
5ef0f527f9
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java

+ 6
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java 查看文件

113
         } catch (Exception e) {
113
         } catch (Exception e) {
114
             JitsiMeetLogger.e(e, TAG + " error in startCall");
114
             JitsiMeetLogger.e(e, TAG + " error in startCall");
115
             if (tm != null) {
115
             if (tm != null) {
116
-                tm.unregisterPhoneAccount(accountHandle);
116
+                try {
117
+                    tm.unregisterPhoneAccount(accountHandle);
118
+                } catch (Throwable tr) {
119
+                    // UnsupportedOperationException: System does not support feature android.software.connectionservice
120
+                    // was observed here. Ignore.
121
+                }
117
             }
122
             }
118
             ConnectionService.unregisterStartCallPromise(callUUID);
123
             ConnectionService.unregisterStartCallPromise(callUUID);
119
             if (e instanceof SecurityException) {
124
             if (e instanceof SecurityException) {

正在加载...
取消
保存