Merge "RESTRICT AUTOMERGE Camera: Fix missing onPhysicalCameraUnavailable" into tm-qpr-dev
This commit is contained in:
@@ -2353,6 +2353,15 @@ public final class CameraManager {
|
||||
final AvailabilityCallback callback = mCallbackMap.keyAt(i);
|
||||
|
||||
postSingleUpdate(callback, executor, id, null /*physicalId*/, status);
|
||||
|
||||
// Send the NOT_PRESENT state for unavailable physical cameras
|
||||
if (isAvailable(status) && mUnavailablePhysicalDevices.containsKey(id)) {
|
||||
ArrayList<String> unavailableIds = mUnavailablePhysicalDevices.get(id);
|
||||
for (String unavailableId : unavailableIds) {
|
||||
postSingleUpdate(callback, executor, id, unavailableId,
|
||||
ICameraServiceListener.STATUS_NOT_PRESENT);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // onStatusChangedLocked
|
||||
|
||||
|
||||
Reference in New Issue
Block a user