diff options
author | 2024-07-16 17:38:54 +0000 | |
---|---|---|
committer | 2024-07-16 17:38:54 +0000 | |
commit | ce3845cad9fce747b9fe7933afac7c3aca18ef91 (patch) | |
tree | 6dd2ffee7f2230547e33de67db56eee91b447c03 | |
parent | 4c5fbae087f40088523089993abe4249fdb98fb7 (diff) | |
parent | 358cdb36a693c75807dc34c4bfc34f69efef0442 (diff) |
Merge "Fix exception when setTorchMode" into main
-rw-r--r-- | services/accessibility/java/com/android/server/accessibility/FlashNotificationsController.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/FlashNotificationsController.java b/services/accessibility/java/com/android/server/accessibility/FlashNotificationsController.java index e6055148867d..2009cd3d4527 100644 --- a/services/accessibility/java/com/android/server/accessibility/FlashNotificationsController.java +++ b/services/accessibility/java/com/android/server/accessibility/FlashNotificationsController.java @@ -659,6 +659,8 @@ class FlashNotificationsController { mIsTorchTouched = on; } catch (CameraAccessException e) { Log.e(LOG_TAG, "Failed to setTorchMode: " + e); + } catch (IllegalArgumentException e) { + Log.e(LOG_TAG, "Failed to setTorchMode: " + e); } } else { Log.e(LOG_TAG, "Can not use camera flash notification, please check CameraManager!"); |