[Android] Deactivate video animations instead of hiding it
Geoffrey Métais
git at videolan.org
Mon Dec 7 14:21:53 CET 2015
vlc-android | branch: 1.7.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 1 10:29:08 2015 +0100| [eefa1de247ffe71a83d9a0c774d1ce36beeaae5e] | committer: Jean-Baptiste Kempf
Deactivate video animations instead of hiding it
(cherry picked from commit 301b7b012e54e5f3a4b58cf23b62b2055c5997a5)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> https://code.videolan.org/videolan/vlc-android/commit/eefa1de247ffe71a83d9a0c774d1ce36beeaae5e
---
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 224aee5..e8857ea 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 9a6ecd0..89a2f03 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