[Android] Async text processing in browser
Geoffrey Métais
git at videolan.org
Mon Apr 20 07:55:28 CEST 2020
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 17 16:12:01 2020 +0200| [a3483a72832fe5910b8fde49350e4287db696243] | committer: Geoffrey Métais
Async text processing in browser
Reuse the async function created previously.
Will bring some performance enhancement.
> https://code.videolan.org/videolan/vlc-android/commit/a3483a72832fe5910b8fde49350e4287db696243
---
application/vlc-android/res/layout/card_browser_item.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/res/layout/card_browser_item.xml b/application/vlc-android/res/layout/card_browser_item.xml
index dd9de31be..c0826fca6 100644
--- a/application/vlc-android/res/layout/card_browser_item.xml
+++ b/application/vlc-android/res/layout/card_browser_item.xml
@@ -136,7 +136,7 @@
android:marqueeRepeatLimit="1"
android:scrollHorizontally="true"
android:singleLine="true"
- android:text="@{filename ?? item.title}"
+ app:asyncText="@{filename ?? item.title}"
android:textColor="?attr/list_title"
android:textSize="14sp"
app:ellipsizeMode="@{true}"
@@ -154,7 +154,7 @@
android:layout_marginStart="8dp"
android:layout_marginBottom="4dp"
android:maxLines="1"
- android:text="@{item.description}"
+ app:asyncText="@{item}"
android:textColor="?attr/list_subtitle"
android:textSize="12sp"
android:visibility="@{TextUtils.isEmpty(item.description) ? View.INVISIBLE : View.VISIBLE}"
More information about the Android
mailing list