[Android] Set list divider if needed

Geoffrey Métais git at videolan.org
Thu Dec 15 14:33:40 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 15 14:13:13 2016 +0100| [9cd6601bf95d54f9f237263131b8c4ccf5a717ce] | committer: Geoffrey Métais

Set list divider if needed

> https://code.videolan.org/videolan/vlc-android/commit/9cd6601bf95d54f9f237263131b8c4ccf5a717ce
---

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

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 e37bc1b..29c2454 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -125,6 +125,8 @@ public class VideoGridFragment extends MediaBrowserFragment implements MediaUpda
 
         mDividerItemDecoration = new DividerItemDecoration(v.getContext(), DividerItemDecoration.VERTICAL_LIST);
         mGridView.setAdapter(mVideoAdapter);
+        if (mVideoAdapter.isListMode())
+            mGridView.addItemDecoration(mDividerItemDecoration);
         return v;
     }
 



More information about the Android mailing list