[Android] Add singleline attirbute to avoid crashes

Geoffrey Métais git at videolan.org
Wed Dec 6 14:33:23 CET 2017


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

Add singleline attirbute to avoid crashes

(cherry picked from commit 11ec18cb62beb790a0d1bf35808ea6092d0b7403)

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

 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