Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): blank screenshots for Android 15 #1233

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

abhaysood
Copy link
Contributor

@abhaysood abhaysood commented Sep 12, 2024

Description

Fixes issue where screenshots on Android 15 were blank. This happened due to incorrect usage of PixelCopy, where instead of using the completion listener the code was assuming PixelCopy.request to work synchronously.

This likely broke only in Android 15 after the following PR was merged:
https://android-review.googlesource.com/c/platform/frameworks/base/+/3015073

How is this tested?

Manually using an Android 15 emulator.

Related issue

Fixes #1222

Fixes issue where screenshots on Android 15 were blank. This
happened due to incorrect usage of PixelCopy, where instead of
using the completion listener the code was assuming `PixelCopy.request` to work synchronously.

This likely broke only in Android 15 because the following PR:
 https://android-review.googlesource.com/c/platform/frameworks/base/+/3015073
@abhaysood abhaysood added bug something isn't working android android related labels Sep 12, 2024
@abhaysood abhaysood self-assigned this Sep 12, 2024
Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
measure-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 7:35am

@anupcowkur anupcowkur self-requested a review September 12, 2024 07:42
@abhaysood abhaysood requested review from detj and removed request for anupcowkur September 12, 2024 08:03
@abhaysood abhaysood merged commit 31452dd into main Sep 12, 2024
9 checks passed
@abhaysood abhaysood deleted the fix-screenshots-android-15 branch September 12, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android android related bug something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Investigate empty screenshots for Android 15
2 participants