Skip to content
Snippets Groups Projects
Commit eefa1de2 authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Jean-Baptiste Kempf
Browse files

Deactivate video animations instead of hiding it


(cherry picked from commit 301b7b01)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fa928bbc
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,6 @@ public class VideoGridAnimator {
isAnimating = false;
View v = mGridView.getChildAt(i);
setAlpha(1, v);
mGridView.setVisibility(View.VISIBLE);
v.startAnimation(animSet);
}
}
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment