8000 Allow Android to handle repeated volume button events by pouwelsjochem · Pull Request #47 · coronalabs/corona · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Allow Android to handle repeated volume button events #47

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

Merged
merged 1 commit into from
Jun 7, 2020
Merged

Allow Android to handle repeated volume button events #47

merged 1 commit into from
Jun 7, 2020

Conversation

pouwelsjochem
Copy link
Contributor

This will keep the functionality of not sending repeated "key" events to lua. But allows Android to decrease/increase the volume.

This will keep the functionality of not sending repeated "key" events to lua. But allows Android to decrease/increase the volume.
@Shchvova
Copy link
Contributor

It's been a while. Why do you think this should work like that?

@pouwelsjochem
Copy link
Contributor Author

Android sends the volume buttons at an interval, currently the implementation blocks the system from handling repeated events by returning true. This change would return false on repeated volume buttons, thus enabling Android to handle them natively.

Tested it on Android 8 or 9, not sure which one it was exactly

@Shchvova Shchvova merged commit 844a823 into coronalabs:master Jun 7, 2020
ggcrunchy pushed a commit to ggcrunchy/corona that referenced this pull request Jul 8, 2021
This will keep the functionality of not sending repeated "key" events to lua. But allows Android to decrease/increase the volume.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3ADF
Development

Successfully merging this pull request may close these issues.

2 participants
0