diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index dd159f1ad..20a80c594 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -61,9 +61,7 @@ function UIManager:init() self.poweroff_action = function() self._entered_poweroff_stage = true logger.info("Powering off the device...") - Device.orig_rotation_mode = Device.screen:getRotationMode() self:broadcastEvent(Event:new("Close")) - Screen:setRotationMode(Screen.ORIENTATION_PORTRAIT) local Screensaver = require("ui/screensaver") Screensaver:setup("poweroff", _("Powered off")) Screensaver:show() @@ -76,9 +74,7 @@ function UIManager:init() self.reboot_action = function() self._entered_poweroff_stage = true logger.info("Rebooting the device...") - Device.orig_rotation_mode = Device.screen:getRotationMode() self:broadcastEvent(Event:new("Close")) - Screen:setRotationMode(Screen.ORIENTATION_PORTRAIT) local Screensaver = require("ui/screensaver") Screensaver:setup("reboot", _("Rebooting…")) Screensaver:show()