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

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

Merge "Camera: remove NOT_PRESENT cameras"

parents 1683b696 0c961165
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -996,7 +996,12 @@ public final class CameraManager {
                return;
                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 (oldStatus != null && oldStatus == status) {
                if (DEBUG) {
                if (DEBUG) {