For PR1.2, the semantics of the portrait mode
flags have slightly changed, so we must not
set the "SUPPORT" flag if we want to stay in
landscape-only mode.
# Ignore repeated requests
return
- flags = hildon.PORTRAIT_MODE_SUPPORT
+ flags = 0
+
+ if orientation != self._LANDSCAPE:
+ flags |= hildon.PORTRAIT_MODE_SUPPORT
+
if orientation == self._PORTRAIT:
flags |= hildon.PORTRAIT_MODE_REQUEST
else:
# Ignore orientation changes for non-automatic modes, but save
# the current orientation for "automatic" mode later on
- self._last_dbus_orientation = orientation
\ No newline at end of file
+ self._last_dbus_orientation = orientation