possibly fixed

This commit is contained in:
MarcaDian 2024-04-11 12:05:47 +03:00
parent cf609158fd
commit 7dd6a28c3f
No known key found for this signature in database
GPG Key ID: 904EF10755E7C016
2 changed files with 5 additions and 4 deletions

View File

@ -176,6 +176,7 @@ class SwipeControlsHostActivity : Activity() {
when (type) {
PlayerType.WATCH_WHILE_FULLSCREEN -> screen?.restore()
else -> {
screen?.restore()
screen?.save()
screen?.restoreDefaultBrightness()
}

View File

@ -77,13 +77,13 @@ class VolumeAndBrightnessScrollerImpl(
),
) { _, _, direction ->
screenController?.run {
val condition = if (config.shouldEnableLowestValueAutoBrightness) {
screenBrightness > 0
val shouldAdjustBrightness = if (config.shouldEnableLowestValueAutoBrightness) {
screenBrightness > 0 || direction > 0
} else {
screenBrightness >= 0
screenBrightness >= 0 || direction >= 0
}
if (condition || direction > 0) {
if (shouldAdjustBrightness) {
screenBrightness += direction
} else {
restoreDefaultBrightness()