Merge "Camera: remove NOT_PRESENT cameras"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user