abdallahmehiz / mpvKt

A media player for android, based on mpv-android and built with Jetpack Compose.
Apache License 2.0
572 stars 18 forks source link

Brightness jumps to zero when using gestures #85

Closed zo-sh closed 1 month ago

zo-sh commented 1 month ago

Describe the bug

When using the brightness gesture, the brightness abruptly jumps to zero. You then need to swipe a second time to adjust it to your desired level.

To Reproduce

  1. Make sure Remember display brightness is turned off
  2. Play a video
  3. Use gestures to change brightness

Expected behavior

The brightness should increase or decrease starting from the device's current brightness level.

Actual behavior

The brightness abruptly jumps to zero.

Crash logs

N/A

Screenshots

N/A

Additional info (please complete the following information):

Additional context

Having Remember display brightness turned on kinda fixes the issue, but it's not always ideal. For instance, at night, when the device's brightness is low, you load up a video and get flashbanged by a remembered brightness of 100%.