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 respecting brightness-volume-gesture settings #4937

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

vkay94
Copy link
Contributor

@vkay94 vkay94 commented Nov 20, 2020

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

This PR fixes the issue that the player didn't respected the brightness/volume gesture setting. When disabling one of them while the other is enabled should change the value for the whole screen instead of just disable the display portion. I didn't know of this behavior :`)

I also moved the isBrightnessEnabled and isVolumeEnabled to the actual onScroll-callback. If a stream is opened or playing and you'll change one or both toggle states the setting won't be applied for this opened Fragment (checked on 0.20.2).

Fixes the following issue(s)

APK testing

app-debug.zip

Due diligence

@TobiGr TobiGr added template missing The bug/feature template is missing (e.g. the used app does not support issue templates) player Issues related to any player (main, popup and background) bug Issue is related to a bug and removed template missing The bug/feature template is missing (e.g. the used app does not support issue templates) labels Nov 20, 2020
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Code looks good and works. Thank you!

@Stypox Stypox merged commit 001f078 into TeamNewPipe:dev Nov 20, 2020
@B0pol
Copy link
Member

B0pol commented Nov 20, 2020

Wrong debug apk

@Stypox
Copy link
Member

Stypox commented Nov 21, 2020

Wrong debug apk

Yeah, I built it myself in order to test

@vkay94
Copy link
Contributor Author

vkay94 commented Nov 21, 2020

@B0pol I guess you refer to the package name which is not matching, don't you? I changed the branch name shortly before opening the PR and apparently used the old one. I'll build the apk when the PR post is finished next time ;)

@B0pol
Copy link
Member

B0pol commented Nov 21, 2020

No, it was an apk dated of September, with crash because of youtube changes

@vkay94
Copy link
Contributor Author

vkay94 commented Nov 21, 2020

Hmm, that's weird. I downloaded the provided zip and the creation date of the apk is 2020-11-20 21:11 (CET).

@vkay94 vkay94 deleted the fix-player-brightness-volume-setting branch December 2, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volume gesture not working everywhere in fullscreen
4 participants