-
-
Notifications
You must be signed in to change notification settings - Fork 423
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: Increase subtitle font size in fullscreen #5200
fix: Increase subtitle font size in fullscreen #5200
Conversation
val fullscreenCaptionsTextSize: Float | ||
get() = PreferenceHelper.getString( | ||
PreferenceKeys.CAPTIONS_SIZE, | ||
"27" | ||
).toFloat() |
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.
You didn't add a preference for that yet, so the user can't change it. And I think we should just make the font size 1.5 times bigger in landscape than usually instead of adding a new preference.
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.
Sure.
I think we should just make the font size 1.5 times bigger in landscape than usually instead of adding a new preference. |
@@ -695,11 +695,19 @@ open class CustomExoPlayerView( | |||
if (PlayerHelper.swipeGestureEnabled && this::brightnessHelper.isInitialized) { |
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.
Due to this line this will only be executed when swipe gestures are enabled.
Please move this condition around the brightnessHelper.restoreSavedBrightness()
calls below to fix this.
Otherwise lgtm.
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.
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, exactly. Please do the same in the else
block where brightnessHelper.resetToSystemBrightness()
is called, then we're good to merge this 👍
if (isFullscreen) { | ||
if (PlayerHelper.swipeGestureEnabled && this::brightnessHelper.isInitialized) { | ||
brightnessHelper.restoreSavedBrightness() |
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.
nit: indentation missing
5155965
to
05e9bf2
Compare
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.
Thank you!
#5095 fix: Increase subtitle font size in fullscreen