From 5ef0f527f97533dd972e91c1567f926180bade49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 26 Dec 2019 09:10:05 +0100 Subject: [PATCH] android: handle exception when unregistering account Pixel C devices have been seen crashing here, oh well. --- .../main/java/org/jitsi/meet/sdk/RNConnectionService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java index 4ebbe1c54..fb784dc9b 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java @@ -113,7 +113,12 @@ class RNConnectionService extends ReactContextBaseJavaModule { } catch (Exception e) { JitsiMeetLogger.e(e, TAG + " error in startCall"); if (tm != null) { - tm.unregisterPhoneAccount(accountHandle); + try { + tm.unregisterPhoneAccount(accountHandle); + } catch (Throwable tr) { + // UnsupportedOperationException: System does not support feature android.software.connectionservice + // was observed here. Ignore. + } } ConnectionService.unregisterStartCallPromise(callUUID); if (e instanceof SecurityException) {