From 788ae642cf7a89046dfbc82ddfb7de09b4fd569f Mon Sep 17 00:00:00 2001 From: Sultanxda Date: Sun, 20 Dec 2015 13:16:21 -0800 Subject: SnapdragonCamera: Fix UI alignment glitches when nav-bar is enabled Snapdragon Camera is immersive (i.e. fullscreen), so we expect to receive the actual size of the display here, not the modified size when the nav-bar is enabled. Change-Id: I942829f77dda0dbb9dd65a60e66a540eecf708e7 Signed-off-by: Sultanxda --- src/com/android/camera/PhotoUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/camera/PhotoUI.java') diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index 693b94b9c..481463fbb 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -299,7 +299,7 @@ public class PhotoUI implements PieListener, mPrevOrientationResize = false; Point size = new Point(); - mActivity.getWindowManager().getDefaultDisplay().getSize(size); + mActivity.getWindowManager().getDefaultDisplay().getRealSize(size); mScreenRatio = CameraUtil.determineRatio(size.x, size.y); if (mScreenRatio == CameraUtil.RATIO_16_9) { int l = size.x > size.y ? size.x : size.y; -- cgit v1.2.3