mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: avoid initializing readerfooter multiple times
This will create multiple autoRefreshTime function and crash the reader on exit
This commit is contained in:
@@ -18,6 +18,11 @@ function ReaderDogear:init()
|
||||
dimen = Geom:new{w = Screen:getWidth(), h = widget:getSize().h},
|
||||
widget,
|
||||
}
|
||||
self:resetLayout()
|
||||
end
|
||||
|
||||
function ReaderDogear:resetLayout()
|
||||
self[1].dimen.w = Screen:getWidth()
|
||||
if Device:isTouchDevice() then
|
||||
self.ges_events = {
|
||||
Tap = {
|
||||
|
||||
Reference in New Issue
Block a user