From 1063ee74e58eaa31b947c70d07cce5186b5c3365 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 12 Nov 2014 16:51:52 +0100 Subject: [PATCH] Fix flipping mode refreshes Don't do regional footer refreshes when we're in flipping mode. There's probably a more elegant/correct way to handle this, but this does the job ;). Fix #1140 --- frontend/apps/reader/modules/readerfooter.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/apps/reader/modules/readerfooter.lua b/frontend/apps/reader/modules/readerfooter.lua index fc82b6649..22a6dfaf5 100644 --- a/frontend/apps/reader/modules/readerfooter.lua +++ b/frontend/apps/reader/modules/readerfooter.lua @@ -267,21 +267,21 @@ function ReaderFooter:onTapFooter(arg, ges) self.mode = 0 end self:applyFooterMode() + local region = Geom:new{ + x = 0, + y = Screen:getHeight() - self.height, + w = Screen:getWidth(), + h = self.height + } + UIManager.update_regions_func = function() + return {region} + end end if self.pageno then self:updateFooterPage() else self:updateFooterPos() end - local region = Geom:new{ - x = 0, - y = Screen:getHeight() - self.height, - w = Screen:getWidth(), - h = self.height - } - UIManager.update_regions_func = function() - return {region} - end UIManager:setDirty(self.view.dialog, "partial") G_reader_settings:saveSetting("reader_footer_mode", self.mode) return true