mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Android: More input handling tweaks
* Android: Fix #7552 by simply ensuring we drain the input/cmd queue first, simply by scheduling the task to the next tick, instead of locally re-implementing part of the event loop ;). (Requires https://github.com/koreader/koreader-base/pull/1356 for extra safety). * Android: Clear input state when the window loses focus. (Related to the above fix). * Bump base: https://github.com/koreader/koreader-base/pull/1356 https://github.com/koreader/koreader-base/pull/1357 * Bump android-luajit-launcher: https://github.com/koreader/android-luajit-launcher/pull/293 https://github.com/koreader/android-luajit-launcher/pull/298 https://github.com/koreader/android-luajit-launcher/pull/299
This commit is contained in:
@@ -280,8 +280,7 @@ function FrontLightWidget:setProgress(num, step, num_warmth)
|
||||
return true
|
||||
end
|
||||
|
||||
-- Currently, we are assuming the 'warmth' has the same min/max limits
|
||||
-- as 'brightness'.
|
||||
-- Currently, we are assuming the 'warmth' has the same min/max limits as 'brightness'.
|
||||
function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group)
|
||||
local button_group_down = HorizontalGroup:new{ align = "center" }
|
||||
local button_group_up = HorizontalGroup:new{ align = "center" }
|
||||
@@ -323,7 +322,7 @@ function FrontLightWidget:addWarmthWidgets(num_warmth, step, vertical_group)
|
||||
|
||||
for i = math.floor(num_warmth / step) + 1, self.steps - 1 do
|
||||
table.insert(warmth_group, self.fl_prog_button:new{
|
||||
text="",
|
||||
text = "",
|
||||
enabled = not self.powerd.auto_warmth,
|
||||
callback = function()
|
||||
self:setProgress(self.fl_cur, step, i * step)
|
||||
|
||||
Reference in New Issue
Block a user