summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoUI.java
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-03-10 16:43:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-03-18 02:53:10 -0700
commite61d57921c1cbbcf21ed4fb737b2bf5591e3f709 (patch)
treef52afe20a7746ff1910cad5311a49b38d7afe27c /src/com/android/camera/VideoUI.java
parent2c6bee17c4265a8b16314d89a10fb7f8b14fb3f5 (diff)
downloadandroid_packages_apps_Snap-e61d57921c1cbbcf21ed4fb737b2bf5591e3f709.tar.gz
android_packages_apps_Snap-e61d57921c1cbbcf21ed4fb737b2bf5591e3f709.tar.bz2
android_packages_apps_Snap-e61d57921c1cbbcf21ed4fb737b2bf5591e3f709.zip
SnapdragonCamera: Reset menu when device is rotated
Reset the settings menu when the device is rotated Change-Id: I6c4fed7207a4d26a9d7c29d18f6a7af17ef3d4f9 CRs-Fixed: 981504
Diffstat (limited to 'src/com/android/camera/VideoUI.java')
-rw-r--r--src/com/android/camera/VideoUI.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java
index 17d472fff..9a882e946 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -134,9 +134,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();
}
};
@@ -1204,6 +1202,11 @@ public class VideoUI implements PieRenderer.PieListener,
mOrientation = orientation;
}
+ public void tryToCloseSubList() {
+ if (mVideoMenu != null)
+ mVideoMenu.tryToCloseSubList();
+ }
+
public int getOrientation() {
return mOrientation;
}