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

Commit 7d31f878 authored by Michelle Ho's avatar Michelle Ho
Browse files

RESTRICT AUTOMERGE Revert "Camera: Fix missing onPhysicalCameraUnavailable"

This reverts commit 08c0efb0.

Reason for revert: GCA incompatible, need to submit along with b/263549589

Change-Id: I16501fab74e154aca97bd687340118e11c3200bf
Bug: 265424740
parent 08c0efb0
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2313,15 +2313,6 @@ 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