mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user