568f06306af2c9f899d72708b73e9c5db7b07735
Flip only reconfigured the CameraSession in place, leaving the Skia offscreen-surface cache from the old lens wedged on this Xiaomi: after a flip the preview banded then went black while the frame pipeline kept delivering (heartbeat kept rising) and only a full app restart revived it. - key <SkiaCamera> by facing + mount nonce so a flip fully unmounts and remounts the camera (lib clears its surface cache on unmount), i.e. a clean restart on every lens switch instead of an in-place reconfigure. - watchdog now recovers by the same full remount instead of an isActive toggle (which never revives a wedged preview), budgeted to 3 restarts. - bump a re-render on every onStarted: after a remount cameraActive never drops (no onStopped on unmount) so the reopen did not re-render and the new controller was never re-read, leaving the 1x-10x zoom chips hidden until the next touch. Verified on device: 15+ flips with no wedge, chips visible immediately after each flip, preview stays live (was ~5 min to black before).
The file is empty.
Description
Languages
TypeScript
92.9%
Kotlin
5.7%
JavaScript
1.3%