appcues / appcues-android-sdk

The Appcues Android SDK
https://www.appcues.com/mobile
MIT License
10 stars 3 forks source link

🐛 Fix screenshot for API 26+ when target view that doesn’t support hardware bitmaps. #544

Closed andretortolano closed 1 year ago

andretortolano commented 1 year ago

Customer was unable to take screenshot on a full compose app. I was able to reproduce by installing Appcues into NowInAndroid. the error message suggest that the method we were using for taking screenshots is probably not the most recommended, so for API 26+ I switched to an approach that uses PixelCopy.

Tested on API 22, 25, 26, 32

shortcut-integration[bot] commented 1 year ago

This pull request has been linked to Shortcut Story #59944: Screen capture issue with composable elements.