mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
refactoring restoreScreenMode from readerview to filemanager
This should fix #983.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user