[Android] Add singleline attirbute to avoid crashes

Geoffrey Métais git at videolan.org
Mon Dec 4 16:21:57 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec  4 16:14:00 2017 +0100| [11ec18cb62beb790a0d1bf35808ea6092d0b7403] | committer: Geoffrey Métais

Add singleline attirbute to avoid crashes

> https://code.videolan.org/videolan/vlc-android/commit/11ec18cb62beb790a0d1bf35808ea6092d0b7403
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
index f91219edf..d20710fe4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -108,6 +108,7 @@ public class VideoListAdapter extends SortableAdapter<MediaWrapper, VideoListAda
         final TextView titleView = holder.itemView.findViewById(R.id.ml_item_title);
         titleView.setMaxLines(mGroup ? 1 : 2);
         titleView.setEllipsize(mGroup ? TextUtils.TruncateAt.START : null);
+        titleView.setSingleLine(mGroup);
     }
 
     @Override



More information about the Android mailing list