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

Commit db6e75f5 authored by Ravneet Dhanjal's avatar Ravneet Dhanjal Committed by Android (Google) Code Review
Browse files

Merge "Camera: Catch SecurityException for UID state changes" into main

parents de07519e fc8049aa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1028,6 +1028,9 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession
                    // Camera is already closed, so nothing left to do
                    if (DEBUG) Log.v(TAG, mIdString +
                            "Camera was already closed or busy, skipping unconfigure");
                } catch (SecurityException e) {
                    // UID state change revoked camera permission
                    Log.e(TAG, mIdString + "Exception while unconfiguring outputs: ", e);
                }
            }
        }