OSDN Git Service

Prevent locking of files when the sd card is ejected New Cache Dirty system which...
[android-x86/packages-apps-Gallery2.git] / src / com / cooliris / media / RenderView.java
index d7f386e..dada58f 100644 (file)
@@ -864,6 +864,8 @@ public final class RenderView extends GLSurfaceView implements GLSurfaceView.Ren
             return false;
         }
         // Wait for the render thread to process this event.
+        if (mTouchEventQueue.size() > 8 && event.getAction() == MotionEvent.ACTION_MOVE)
+               return true;
         synchronized (mTouchEventQueue) {
             MotionEvent eventCopy = MotionEvent.obtain(event);
             mTouchEventQueue.addLast(eventCopy);