android: fix the frontlight minimum on generic devices (#16308)

This commit is contained in:
tempestnano authored and GitHub committed 2026-10-26 22:54:27 +01:00
1 parent c07752e8c8
commit d0c3fd0988
1 file changed
+1 -1
+1 -1
View File
@@ -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