screen orientation won't change when going into filemanager

and filemanager remembers screen orientation at exit
This should fix #1338.
This commit is contained in:
chrox
2015-02-02 01:36:49 +08:00
parent ca6b3d7e33
commit f22a53affd
3 changed files with 27 additions and 12 deletions

View File

@@ -40,11 +40,10 @@ function ReaderMenu:init()
callback = function()
self:onTapCloseMenu()
self.ui:onClose()
-- 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
if FileManager.instance then
FileManager.instance:resetDimen(Screen:getSize())
else
local lastdir = nil
local last_file = G_reader_settings:readSetting("lastfile")
if last_file then