Have CameraServiceProxy listen directly to DeviceStateManager.
Currently CameraServiceProxy receives notifications about fold/unfold events from DisplayFoldController in order to toggle camera availability for foldable devices. Instead of going through DisplayFoldController, which is a part of WindowManager policy, have CameraServiceProxy listen directly to DeviceStateManager to receive these notifications. Test: Manual - flash foldable and verify camera toggling Bug: 173428581 Change-Id: I1d6789d3254e478ab3c04589461db0c299359ebd
Loading
Please register or sign in to comment