[Android] Increase delay for video grid animation
Geoffrey Métais
git at videolan.org
Wed Dec 2 17:35:46 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec 2 17:06:03 2015 +0100| [f359132edafc9240115c486ba8767c3c0a0602c9] | committer: Geoffrey Métais
Increase delay for video grid animation
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f359132edafc9240115c486ba8767c3c0a0602c9
---
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