[Android] Do not inflate 'seen' mark by default

Geoffrey Métais git at videolan.org
Thu Sep 21 16:40:17 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 21 16:39:55 2017 +0200| [7e373079558742b7748ffbd4e343a76c1e9dab95] | committer: Geoffrey Métais

Do not inflate 'seen' mark by default

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

 vlc-android/res/layout/video_grid_card.xml | 2 +-
 vlc-android/res/layout/video_list_card.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/video_grid_card.xml b/vlc-android/res/layout/video_grid_card.xml
index 01d68bef8..44b801308 100644
--- a/vlc-android/res/layout/video_grid_card.xml
+++ b/vlc-android/res/layout/video_grid_card.xml
@@ -82,7 +82,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:src="@drawable/ic_seen_normal"
-            android:visibility="@{seen == 0L ? View.GONE : View.VISIBLE}"
+            android:visibility="@{seen == 0L ? View.GONE : View.VISIBLE, default=gone}"
             vlc:layout_constraintEnd_toEndOf="@+id/ml_item_thumbnail"
             vlc:layout_constraintTop_toTopOf="@+id/ml_item_thumbnail" />
 
diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index 323910436..b14ab25e3 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -74,7 +74,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:src="@drawable/ic_seen_normal"
-            android:visibility="@{seen == 0L ? View.GONE : View.VISIBLE}"
+            android:visibility="@{seen == 0L ? View.GONE : View.VISIBLE, default=gone}"
             vlc:layout_constraintEnd_toEndOf="@+id/ml_item_thumbnail"
             vlc:layout_constraintTop_toTopOf="@+id/ml_item_thumbnail" />
 



More information about the Android mailing list