-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fit / Fill / Zoom bug #5613
Comments
It think I managed to find the problem by reviewing the code. The problem is very likely on NewPipe/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java Lines 487 to 488 in 0d522aa
When the a new resizeMode is set by calling NewPipe/app/src/main/java/org/schabi/newpipe/player/Player.java Lines 3613 to 3617 in 0d522aa
However it stores the old one in the preferences. So when switching from ZOOM to FIT, it returns FIT (which is used for the current video), but stores ZOOM in the preferences (used for the next videos) This was probably introduced by commit f6e2dd1 from @Stypox last month |
I think the settings key "last_resize_mode" is ambigous. While it is used to get the recently used resize mode, someone thought while working on the resize mode switcher, that the old (to be replaced) resize mode should be stored. Fixes #5613
I think the settings key "last_resize_mode" is ambiguous. While it is used to get the recently used resize mode, someone thought while working on the resize mode switcher, that the old (to be replaced) resize mode should be stored. Fixes #5613
Can you test the APK from #5792 and tell me, whether the bug is fixed? |
@TobiGr Tested with a virtual Pixel 3a |
I think the settings key "last_resize_mode" is ambiguous. While it is used to get the recently used resize mode, someone thought while working on the resize mode switcher, that the old (to be replaced) resize mode should be stored. Fixes TeamNewPipe#5613
Checklist
Steps to reproduce the bug
Actual behaviour
The value doesnt stay the same.
if u choose Zoom then it will default to Fill
if u choose Fill it will default to Fit
if u choose Fit it will default to Zoom
Expected behavior
Value must stay the same!
Screenshots/Screen recordings
signal-2021-02-17-110941.mp4
Logs
Device info
The text was updated successfully, but these errors were encountered: