fm(fix): close filemanager before showReader

This removes filemanager from UI widget stack so it does not listen
to events sent to the reader. Before this patch, screenshot event will
be sent to filemanager.
This commit is contained in:
Qingping Hou
2016-05-29 19:36:51 -07:00
parent 66754e3068
commit ac03cd241f

View File

@@ -89,6 +89,7 @@ function FileManager:init()
self.file_chooser = file_chooser
function file_chooser:onFileSelect(file) -- luacheck: ignore
FileManager.instance:onClose()
local ReaderUI = require("apps/reader/readerui")
ReaderUI:showReader(file)
return true