summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-19 09:26:12 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-19 09:26:12 -0700
commit2b032ea8896f0d9a07e3993a229bb5a5a88988cb (patch)
tree756a06750a901f9364a7b4f23946912f0739834e
parent0542a03d70d0bce6534dab955facf309b497724f (diff)
parent044a690fc9a0186e1307f02b32344d69bad38681 (diff)
Merge "Catch runtime exception when telephony is not available" into main
-rw-r--r--service/java/com/android/ecm/EnhancedConfirmationService.java2
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 1a6b80a3c..1cc3a743e 100644
--- a/service/java/com/android/ecm/EnhancedConfirmationService.java
+++ b/service/java/com/android/ecm/EnhancedConfirmationService.java
@@ -685,7 +685,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.