From 3d21981a88b0b0de1a28bfcd497bbf5d53e6a52d Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 7 Jan 2014 10:12:36 +0800 Subject: [PATCH 1/2] fix koreader-base reference is not a tree --- koreader-base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koreader-base b/koreader-base index f7645b056..fc05afc03 160000 --- a/koreader-base +++ b/koreader-base @@ -1 +1 @@ -Subproject commit f7645b0564ff461c43abe6f24452072551fbfcac +Subproject commit fc05afc03370d7cf14537c45bba46177b341572f From 4a5c6cdf12e648f2f767a573842da4c0d8f62066 Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 7 Jan 2014 10:21:05 +0800 Subject: [PATCH 2/2] fix intensity field name in powerd --- frontend/ui/reader/readerfrontlight.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/ui/reader/readerfrontlight.lua b/frontend/ui/reader/readerfrontlight.lua index 8e149e126..7937a4d75 100644 --- a/frontend/ui/reader/readerfrontlight.lua +++ b/frontend/ui/reader/readerfrontlight.lua @@ -33,20 +33,20 @@ end function ReaderFrontLight:onAdjust(arg, ges) local powerd = Device:getPowerDevice() - if powerd.intensity ~= nil then + if powerd.flIntensity ~= nil then local rel_proportion = ges.distance / Screen:getWidth() local delta_int = self.steps[math.ceil(#self.steps*rel_proportion)] or self.steps[#self.steps] local msg = nil if ges.direction == "north" then msg = _("Increase front light intensity to ") - powerd:setIntensity(powerd.intensity + delta_int) + powerd:setIntensity(powerd.flIntensity + delta_int) elseif ges.direction == "south" then msg = _("Decrease front light intensity to ") - powerd:setIntensity(powerd.intensity - delta_int) + powerd:setIntensity(powerd.flIntensity - delta_int) end if msg ~= nil then UIManager:show(Notification:new{ - text = msg..powerd.intensity, + text = msg..powerd.flIntensity, timeout = 1 }) end