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

Commit 0e32a62c authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by android-build-merger
Browse files

Merge "Camera: remove NOT_PRESENT cameras"

am: 174df238

Change-Id: I2c0dd5ccd8c8a165b568563051ad42dba6082792
parents cdeb50aa 174df238
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) {