diff options
Diffstat (limited to 'services/java/com/android/server/wm/WindowManagerService.java')
-rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index e258b1a..192d32b 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -5291,24 +5291,24 @@ public class WindowManagerService extends IWindowManager.Stub case Surface.ROTATION_0: return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_90: - return Gravity.RIGHT | Gravity.CENTER_VERTICAL; + return Gravity.RIGHT | Gravity.BOTTOM; case Surface.ROTATION_180: - return Gravity.CENTER_HORIZONTAL | Gravity.TOP; + return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_270: - return Gravity.LEFT | Gravity.CENTER_VERTICAL; + return Gravity.LEFT | Gravity.BOTTOM; } } else { // On devices with a natural orientation of landscape switch (rotation) { default: case Surface.ROTATION_0: - return Gravity.RIGHT | Gravity.CENTER_VERTICAL; + return Gravity.RIGHT | Gravity.BOTTOM; case Surface.ROTATION_90: return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; case Surface.ROTATION_180: - return Gravity.LEFT | Gravity.CENTER_VERTICAL; + return Gravity.LEFT | Gravity.BOTTOM; case Surface.ROTATION_270: - return Gravity.CENTER_HORIZONTAL | Gravity.TOP; + return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; } } } |