Skip to content

Let screen wake touches pass through#225

Merged
d4rken merged 1 commit into
mainfrom
fix/screen-wake-touch-passthrough
May 11, 2026
Merged

Let screen wake touches pass through#225
d4rken merged 1 commit into
mainfrom
fix/screen-wake-touch-passthrough

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 11, 2026

Summary

  • make ScreenWakeActivity non-touchable so the transparent wake holder does not consume the first tap or swipe after waking the screen
  • remove the explicit dispatchTouchEvent() handler that finished the activity while returning the event as handled
  • add a JVM reflection regression guard that fails if the touch interceptor is reintroduced

Test plan

  • ./gradlew :app:testFossDebugUnitTest --tests eu.darken.bluemusic.monitor.core.screenwake.ScreenWakeActivityTest
  • ./gradlew :app:testGplayDebugUnitTest --tests eu.darken.bluemusic.monitor.core.screenwake.ScreenWakeActivityTest

Manual verification note

On a Pixel/Android lockscreen, the expected behavior is now: KeepAwake wakes the screen, and the first tap/swipe should reach the lockscreen or launched app instead of only dismissing BlueMusic's transparent wake activity.

@d4rken d4rken merged commit 160c363 into main May 11, 2026
11 checks passed
@d4rken d4rken deleted the fix/screen-wake-touch-passthrough branch May 11, 2026 10:21
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.

1 participant