diff options
author | 2025-03-19 20:24:48 -0700 | |
---|---|---|
committer | 2025-03-19 20:24:48 -0700 | |
commit | 1c54edbffee142ea80b6ddf1310aa45008429912 (patch) | |
tree | 1f72080688db7935e78652b1609a5c8eeda01e09 | |
parent | 87bfaa7868a89ea5a1ec00664505677a191a4a55 (diff) | |
parent | e27a8ccecf78fdf734827b8a023d53c5c5027b79 (diff) |
Merge "Catch runtime exception when telephony is not available" into main
-rw-r--r-- | service/java/com/android/ecm/EnhancedConfirmationService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/ecm/EnhancedConfirmationService.java b/service/java/com/android/ecm/EnhancedConfirmationService.java index af2e81133..515f70add 100644 --- a/service/java/com/android/ecm/EnhancedConfirmationService.java +++ b/service/java/com/android/ecm/EnhancedConfirmationService.java @@ -162,7 +162,7 @@ public class EnhancedConfirmationService extends SystemService { if (number != null && mTelephonyManager.isEmergencyNumber(number)) { return CALL_TYPE_EMERGENCY; } - } catch (IllegalStateException | UnsupportedOperationException e) { + } catch (RuntimeException e) { // If either of these are thrown, the telephony service is not available on the current // device, either because the device lacks telephony calling, or the telephony service // is unavailable. |