refactor
This commit is contained in:
parent
3a81731c31
commit
44cd133fe2
|
@ -200,7 +200,7 @@ class SwipeControlsHostActivity : Activity() {
|
|||
*/
|
||||
private fun createScreenController() =
|
||||
if (config.enableBrightnessControl) {
|
||||
ScreenBrightnessController(this, config)
|
||||
ScreenBrightnessController(this)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue