File tree Expand file tree Collapse file tree
app/src/main/java/org/koreader/launcher/device/lights Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,18 +153,16 @@ class Rockchip3566Controller : LightsInterface {
153153 }
154154
155155 private fun setBrightnessInternal (context : Context , brightness : Int ) {
156- val defaultTemp = 0
157156 val temperature =
158- getSystemProperty(SYS_PROP_TEMPERATURE , 0 .toString())
159- ?.toIntOrNull() ? : defaultTemp
157+ getSystemProperty(SYS_PROP_TEMPERATURE , MIN .toString())
158+ ?.toIntOrNull() ? : MIN
160159 setLight(context, brightness, temperature)
161160 }
162161
163162 private fun setTemperatureInternal (context : Context , temperature : Int ) {
164- val defaultTemp = 0
165163 val brightness =
166- getSystemProperty(SYS_PROP_BRIGHTNESS , 0 .toString())
167- ?.toIntOrNull() ? : defaultTemp
164+ getSystemProperty(SYS_PROP_BRIGHTNESS , MIN .toString())
165+ ?.toIntOrNull() ? : MIN
168166 setLight(context, brightness, temperature)
169167 }
170168
You can’t perform that action at this time.
0 commit comments