[Android] Restore Grid spacing

Geoffrey Métais git at videolan.org
Wed May 4 13:10:29 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May  4 12:55:00 2016 +0200| [9756683f33e614377783114bac7977fa003f5e6f] | committer: Geoffrey Métais

Restore Grid spacing

> https://code.videolan.org/videolan/vlc-android/commit/9756683f33e614377783114bac7977fa003f5e6f
---

 vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java b/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
index 3a1f182..6b94156 100644
--- a/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
@@ -67,7 +67,7 @@ public class AutoFitRecyclerView extends ContextMenuRecyclerView {
     protected void onMeasure(int widthSpec, int heightSpec) {
         super.onMeasure(widthSpec, heightSpec);
         if (mSpanCount == -1 && mColumnWidth > 0) {
-            int ratio = (int) (getMeasuredWidth() / (mColumnWidth*1.2));
+            int ratio = (int) (getMeasuredWidth() / (mColumnWidth*1.1));
             int spanCount = Math.max(1, ratio);
             mGridLayoutManager.setSpanCount(spanCount);
         } else



More information about the Android mailing list