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

Commit ce3845ca authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix exception when setTorchMode" into main

parents 4c5fbae0 358cdb36
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!");