-
-
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
Fix caption sizes not being changed #11806
base: dev
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
Looks like there is another place where this is set, in the Popup player: NewPipe/app/src/main/java/org/schabi/newpipe/player/ui/PopupPlayerUi.java Lines 426 to 430 in f7d0fd5
|
This will use the exact subtitle sizes the user requested, both for the main and the popup player. They will always be the same fraction of the video, even if the popup player is resized.
34e8dae
to
86203d6
Compare
@Thompson3142 I adjusted the commit to include the Popup player, please take a look. |
Quality Gate passedIssues Measures |
Doesn't that make the subtitles size in the Popup player extremly large? I doubt that anybody actually reads subtitles in the Popup player anyway but they should probably be smaller if somebody wants to read them. |
It didn’t look like it. They had the same size as in the main player, and would shrink according to the resize. Although maybe a point could be made that they should stay at least the same size if you shrink the video, so you can still read them. |
You could spend months optimizing this for every possible screen size and caption size, but it’s not worth it. I’ve reviewed it myself, and the caption size in the popup seems appropriate (at least it is what I would expect it to be). I’m happy with this as is, making it a little more simple is definetly an improvement. |
What is it?
Description of the changes in your PR
The caption size setting now correctly applies to the main player. I have tested this on several (emulated) devices, but additional test are probably needed to ensure it works correctly on all devices.
If I overlooked any aspects of the original implementation, I’m happy to adjust the code as needed.
Restarting the app is no longer required - only restarting the player is necessary. If this PR is accepted, the related strings in the settings should be updated to reflect this change.
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. You can find more info and a video demonstration on this wiki page.
Due diligence