mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 11:26:18 +02:00
possibly fixed
This commit is contained in:
parent
cf609158fd
commit
7dd6a28c3f
|
@ -176,6 +176,7 @@ class SwipeControlsHostActivity : Activity() {
|
|||
when (type) {
|
||||
PlayerType.WATCH_WHILE_FULLSCREEN -> screen?.restore()
|
||||
else -> {
|
||||
screen?.restore()
|
||||
screen?.save()
|
||||
screen?.restoreDefaultBrightness()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user