mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Android frontlight control
This commit is contained in:
@@ -11,9 +11,7 @@ function AndroidPowerD:frontlightIntensityHW()
|
||||
end
|
||||
|
||||
function AndroidPowerD:setIntensityHW(intensity)
|
||||
if self.fl_intensity ~= intensity then
|
||||
android.setScreenBrightness(math.floor(255 * intensity / self.fl_max))
|
||||
end
|
||||
android.setScreenBrightness(math.floor(255 * intensity / self.fl_max))
|
||||
end
|
||||
|
||||
function AndroidPowerD:getCapacityHW()
|
||||
|
||||
Reference in New Issue
Block a user