-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add an option to Ignore hardware media button events #9746
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I don't think it's a good idea to add the BLUETOOTH_CONNECT
permission. Unfortunately unless there is a different way to tell media button events apart, I don't think this will be merged.
Actually, it seems like only hardware media events go through the custom handler. Therefore, it should be safe to just not distinguish them. |
Ok, thanks. So the setting description should be updated to explain that all hardware actions will be blocked (including bluetooth ones). Then it will be up to users to choose if they want to enable this setting or not. |
I made a mess with the git history on the fork, but it should be ready for preview now |
I pushed some improvements to make code shorter and a bit more performant. I tested with a bluetooth speaker and the hardware buttons get correctly blocked when the setting is on. Are the changes I pushed ok, in your opinion? Thanks! |
Kudos, SonarCloud Quality Gate passed! |
Looks nice! So I suppose it's ready for merge now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks for confirming :-)
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
The option is inside the Video and audio category.
Before:

After:

Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence