Skip to content

Conversation

@m1ga
Copy link
Contributor

@m1ga m1ga commented Oct 23, 2025

Startup crash introduced by #14311 and devices with Android 13 or lower. new Activity.ScreenCaptureCallback() is not available on these devices but it still tries to create the variable.

Fix:
initialize the variable in onCreate and add a Android SDK version check around it

Test:
Start any app on an Android 13 device. Master will crash right away.

10-23 16:37:55.291 28706 28706 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/Activity$ScreenCaptureCallback;
10-23 16:37:55.291 28706 28706 E AndroidRuntime:        at java.lang.Class.newInstance(Native Method)

Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cb1kenobi cb1kenobi merged commit fe01676 into master Oct 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants