CameraService: Fill in missing facing information in Treble path
getDeviceVersion(), for whatever reason, also optionally returns the facing of the specified camera device. The latter part was left out of the Treble path implementation, resulting in incorrect display orientation calculations higher up the chain. Also add checks for invalid facings returned by getDeviceVersion so that error logs will point this out next time. Test: Manual inspection: API1-based applications do not have upside- down preview. API1 CTS passes. Bug: 34816614 Change-Id: Ice4c644e504f59e7df9be6636d9e6a3b38c52d4b
Loading
Please register or sign in to comment