summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/GLRootView.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2010-04-30 15:40:44 +0800
committerOwen Lin <owenlin@google.com>2010-09-23 15:41:42 +0800
commit599e592e6ad7d470e090bad784a88d833a9c9a2f (patch)
treeff1b536ad602359d4d3d3bccfd32e35fb558eb2a /src/com/android/camera/ui/GLRootView.java
parent88965e34642044c9da9e7e686323994fdc0c2c1b (diff)
downloadLegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.zip
LegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.tar.gz
LegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.tar.bz2
Improve the scroll bar in GLList.
Change-Id: I0d633fb7db7ea83445bf51b62f90dc5217eae746
Diffstat (limited to 'src/com/android/camera/ui/GLRootView.java')
-rw-r--r--src/com/android/camera/ui/GLRootView.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/GLRootView.java b/src/com/android/camera/ui/GLRootView.java
index e7ac5e3..bdb0a8e 100644
--- a/src/com/android/camera/ui/GLRootView.java
+++ b/src/com/android/camera/ui/GLRootView.java
@@ -30,6 +30,7 @@ import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
+import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
@@ -37,7 +38,6 @@ import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.Stack;
-
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
@@ -728,4 +728,12 @@ public class GLRootView extends GLSurfaceView
texture.setTextureSize(newWidth, newHeight);
}
+ @Override
+ protected void onVisibilityChanged(View changedView, int v) {
+ super.onVisibilityChanged(changedView, v);
+ if (mContentView != null) {
+ mContentView.onVisibilityChanged(
+ v == View.VISIBLE ? GLView.VISIBLE : GLView.INVISIBLE);
+ }
+ }
}