Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 419de098 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix exception when setTorchMode" into main am: ce3845ca

parents 4549d558 ce3845ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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!");