Browse Source

android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
master
Saúl Ibarra Corretgé 5 years ago
parent
commit
5ef0f527f9

+ 6
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java View File

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) {

Loading…
Cancel
Save