refactoring restoreScreenMode from readerview to filemanager

This should fix #983.
This commit is contained in:
chrox
2014-10-12 17:25:26 +08:00
parent 101a7f6d96
commit e714caed8d
3 changed files with 8 additions and 11 deletions

View File

@@ -43,7 +43,10 @@ function ReaderMenu:init()
callback = function()
self.ui:onClose()
self:onTapCloseMenu()
-- screen orientation is independent for docview and filemanager
-- so we need to restore the screen mode for the filemanager
local FileManager = require("apps/filemanager/filemanager")
FileManager:restoreScreenMode()
if not FileManager.is_running then
UIManager:quit()
FileManager:showFiles()