cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.23k stars 211 forks source link

Extract FrameHandler from PaparazziSdk #1363

Closed gamepro65 closed 3 months ago

gamepro65 commented 3 months ago

We are calling handler.use { } inside takeSnapshots as well as frameHandler?.close() in sdk's teardown causing us to double close the frameHandler.

Instead of continuing to use FrameHandler directly in PaparazziSdk this PR aims to expose a frame callback that can be utilized by Paparazzi to forward to it's self owned FrameHandler avoiding any accidental cleanup during sdk's teardown.