mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
FileManagerShortcuts: Handle rotation events
This commit is contained in:
@@ -229,6 +229,18 @@ function FileManagerShortcuts:onShowFolderShortcutsDialog()
|
||||
onMenuHold = self.onMenuHold,
|
||||
_manager = self,
|
||||
}
|
||||
|
||||
-- Handle rotation events
|
||||
local this = self
|
||||
function self.fm_bookmark:onSetRotationMode(rotation)
|
||||
if rotation ~= nil and rotation ~= Screen:getRotationMode() then
|
||||
UIManager:close(this.fm_bookmark)
|
||||
Screen:setRotationMode(rotation)
|
||||
this:onShowFolderShortcutsDialog()
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
self:updateItemTable()
|
||||
UIManager:show(self.fm_bookmark)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user