[Android] Deactivate video animations instead of hiding it

Geoffrey Métais git at videolan.org
Tue Dec 1 10:29:51 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec  1 10:29:08 2015 +0100| [301b7b012e54e5f3a4b58cf23b62b2055c5997a5] | committer: Geoffrey Métais

Deactivate video animations instead of hiding it

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java |    1 -
 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java |    3 +--
 2 files changed, 1 insertion(+), 3 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 8c2677e..a3d85c4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridAnimator.java
@@ -122,7 +122,6 @@ public class VideoGridAnimator {
                 isAnimating = false;
                 View v = mGridView.getChildAt(i);
                 setAlpha(1, v);
-                mGridView.setVisibility(View.VISIBLE);
                 v.startAnimation(animSet);
             }
         }
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 4425315..5f03e89 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -127,6 +127,7 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
 
         mGridView.addOnScrollListener(mScrollListener);
         mGridView.setAdapter(mVideoAdapter);
+        mGridView.setItemAnimator(null);
         return v;
     }
 
@@ -183,8 +184,6 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
         // We don't animate while medialib is scanning. Because gridview is being populated.
         // That would lead to graphical glitches
         final boolean animate = mGroup == null && refresh && !mMediaLibrary.isWorking();
-        if (animate)
-            mGridView.setVisibility(View.INVISIBLE);
         if (refresh)
             updateList();
         else {



More information about the Android mailing list