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

@@ -545,15 +545,6 @@ function ReaderView:onSetScreenMode(new_mode, rotation)
return true
end
-- for returning to FileManager
function ReaderView:onRestoreScreenMode(old_mode)
if old_mode == "landscape" or old_mode == "portrait" then
Screen:setScreenMode(old_mode)
self.ui:handleEvent(Event:new("SetDimensions", Screen:getSize()))
end
return true
end
function ReaderView:onSetDimensions(dimensions)
self:resetLayout()
self.dimen = dimensions