persistent reader footer mode

pull/564/head
chrox 11 years ago
parent 8e4eda579e
commit eeb81f1c39

@ -81,6 +81,8 @@ function ReaderFooter:init()
}, },
} }
end end
self.mode = G_reader_settings:readSetting("reader_footer_mode") or self.mode
self:applyFooterMode()
end end
function ReaderFooter:updateFooterPage() function ReaderFooter:updateFooterPage()
@ -150,6 +152,7 @@ function ReaderFooter:onTapFooter(arg, ges)
self:updateFooterPos() self:updateFooterPos()
end end
UIManager:setDirty(self.view.dialog, "partial") UIManager:setDirty(self.view.dialog, "partial")
G_reader_settings:saveSetting("reader_footer_mode", self.mode)
return true return true
end end

Loading…
Cancel
Save