[Android] Increase delay for video grid animation

Geoffrey Métais git at videolan.org
Wed Dec 2 17:30:31 CET 2015


vlc-ports/android | branch: 1.7.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec  2 17:06:03 2015 +0100| [0ba3a9ea7b0d2a59b1a564ee0c89eda137b04eae] | committer: Geoffrey Métais

Increase delay for video grid animation

(cherry picked from commit f359132edafc9240115c486ba8767c3c0a0602c9)

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0ba3a9ea7b0d2a59b1a564ee0c89eda137b04eae
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java
index a3d85c4..e8857ea 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java
@@ -81,13 +81,13 @@ public class VideoGridAnimator {
                 /* List not not ready yet: reschedule */
                 mLastNItems = mGridView.getChildCount();
                 Log.e(TAG, "Rescheduling animation: list not ready");
-                mGridView.postDelayed(this, 10);
+                mGridView.postDelayed(this, 200);
                 return;
             }
 
             isAnimating = false;
 
-            for (int i = 0; i < mGridView.getChildCount(); i++) {
+            for (int i = 0; i < mLastNItems; i++) {
                 AnimationSet animSet = new AnimationSet(true);
                 Animation animation = new AlphaAnimation(0.0f, 1.0f);
                 animation.setDuration(300);



More information about the Android mailing list