summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/BaseUI.java3
-rw-r--r--src/com/android/camera/ui/CameraControls.java10
2 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/camera/BaseUI.java b/src/com/android/camera/BaseUI.java
index 83ea015..4dad158 100644
--- a/src/com/android/camera/BaseUI.java
+++ b/src/com/android/camera/BaseUI.java
@@ -109,6 +109,9 @@ public abstract class BaseUI {
mPreviewCover.setVisibility(View.GONE);
enableOverlays();
}
+ if (mCameraControls != null) {
+ mCameraControls.reset();
+ }
}
}
}
diff --git a/src/com/android/camera/ui/CameraControls.java b/src/com/android/camera/ui/CameraControls.java
index 9d023bb..66bf4e0 100644
--- a/src/com/android/camera/ui/CameraControls.java
+++ b/src/com/android/camera/ui/CameraControls.java
@@ -122,7 +122,15 @@ public class CameraControls extends RotatableLayout {
return mAnimationHelper.isAnimating();
}
- public void reset() { mAnimationHelper.reset(); }
+ public void reset() {
+ post(new Runnable() {
+ @Override
+ public void run() {
+ mAnimationHelper.reset();
+ enableTouch(true);
+ }
+ });
+ }
private void setChildrenVisibility(ViewGroup parent, boolean visible) {
for (int i = 0; i < parent.getChildCount(); i++) {