This commit is contained in:
MarcaDian 2024-04-16 11:03:33 +03:00
parent 3a81731c31
commit 44cd133fe2
No known key found for this signature in database
GPG Key ID: 904EF10755E7C016
2 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class SwipeControlsHostActivity : Activity() {
*/
private fun createScreenController() =
if (config.enableBrightnessControl) {
ScreenBrightnessController(this, config)
ScreenBrightnessController(this)
} else {
null
}

View File

@ -15,6 +15,8 @@ class ScreenBrightnessController(
val config: SwipeControlsConfigurationProvider,
) {
constructor(context: Activity) : this(context, SwipeControlsConfigurationProvider(context))
/**
* the current screen brightness in percent, ranging from 0.0 to 100.0
*/