mirror of
https://github.com/koreader/koreader.git
synced 2026-11-27 06:43:01 +00:00
android: fix the frontlight minimum on generic devices (#16308)
This commit is contained in:
1 parent
c07752e8c8
commit
d0c3fd0988
1 file changed
+1
-1
@@ -27,7 +27,7 @@ function AndroidPowerD:init()
|
||||
-- do not use fl_min==0 if getScreenMinBrightness!=0,
|
||||
-- because intenstiy==0 would mean to use system intensity
|
||||
if min_bright ~= self.fl_min then
|
||||
self.fl_min = math.ceil(min_bright * self.bright_diff / self.fl_max)
|
||||
self.fl_min = math.ceil(min_bright * self.fl_max / self.bright_diff)
|
||||
end
|
||||
|
||||
if self.device:hasNaturalLight() then
|
||||
|
||||
Reference in new issue
Block a user