From 038809e1d3f444e65e9de9f5f4b46bd442862d79 Mon Sep 17 00:00:00 2001 From: Byunghun Jeon Date: Thu, 10 Mar 2016 16:43:18 -0800 Subject: SnapdragonCamera: Reset menu when device is rotated Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504 --- src/com/android/camera/VideoUI.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/com/android/camera/VideoUI.java') diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java index 5245187ee..375e89b66 100644 --- a/src/com/android/camera/VideoUI.java +++ b/src/com/android/camera/VideoUI.java @@ -122,9 +122,7 @@ public class VideoUI implements PieRenderer.PieListener, @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { - if(mVideoMenu != null) { - mVideoMenu.tryToCloseSubList(); - } + tryToCloseSubList(); } }; @@ -1112,6 +1110,11 @@ public class VideoUI implements PieRenderer.PieListener, mOrientation = orientation; } + public void tryToCloseSubList() { + if (mVideoMenu != null) + mVideoMenu.tryToCloseSubList(); + } + public int getOrientation() { return mOrientation; } -- cgit v1.2.3