Merge "Camera: remove NOT_PRESENT cameras"
am: 174df238ac
Change-Id: I2c0dd5ccd8c8a165b568563051ad42dba6082792
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