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

Commit 64631596 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Camera: remove NOT_PRESENT cameras" am: 174df238 am: 0e32a62c am: 75774be5"

parents 298f5dce 2d3cae80
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -996,7 +996,12 @@ public final class CameraManager {
                return;
            }

            Integer oldStatus = mDeviceStatus.put(id, status);
            Integer oldStatus;
            if (status == ICameraServiceListener.STATUS_NOT_PRESENT) {
                oldStatus = mDeviceStatus.remove(id);
            } else {
                oldStatus = mDeviceStatus.put(id, status);
            }

            if (oldStatus != null && oldStatus == status) {
                if (DEBUG) {