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 last resize mode not being restored correctly #5792

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Fix last resize mode not being restored correctly #5792

merged 1 commit into from
Mar 17, 2021

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Mar 7, 2021

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

The player's resize mode / aspect ratio handling was not stored correctly. For this reason, the resize mode needed to be changed every time the player was started on devices with aspect ratios different to 16:9.

I think the settings key "last_resize_mode" is ambiguous. While it is used to get the recently used resize mode, someone working on the resize mode switcher thought, that the old (to be replaced) resize mode should be stored.

I did not create a settings migration for this change, because we do not know which preferences were affected by this bug, and which were not.

Fixes the following issue(s)

Fixes #5613

APK testing

On the website the APK can be found by going to the "Checks" tab below the title and then on "artifacts" on the right.

Due diligence

@TobiGr TobiGr added bug Issue is related to a bug player Issues related to any player (main, popup and background) labels Mar 7, 2021
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
@Orion983
Copy link

I found a temporary fix on my Redmi 8 and Samsung Galaxy Tab A6. What you need to do to keep it on the setting you want is to set the aspect ratio to the one that appears after what you want (For example if you want "Fill" set it to "Zoom") and then close the video. Open any video and it will be set to your preferred aspect ratio. This should still be fixed though, I'm just letting everyone know

Copy link
Contributor

@iamthesenate1 iamthesenate1 left a comment

Choose a reason for hiding this comment

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

Works great for me.

@TobiGr TobiGr force-pushed the dev branch 2 times, most recently from 679bc75 to 2aeccc0 Compare March 16, 2021 08:24
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.

This was also caused by me, my bad... I tested, and now it works. Code looks good. Thank you :-)

@Stypox Stypox merged commit feb65cf into dev Mar 17, 2021
@TobiGr TobiGr deleted the resize_mode branch March 17, 2021 08:08
This was referenced Mar 21, 2021
tossj pushed a commit to tossj/NewPipe-legacy that referenced this pull request Apr 22, 2021
Fix last resize mode not being restored correctly
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.

Fit / Fill / Zoom bug
5 participants