[Android] Do not inflate favorites section by default

Geoffrey Métais git at videolan.org
Tue Jun 12 10:17:13 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun 12 10:16:08 2018 +0200| [c04f7697de4686f3997f509ad19453d782f4b530] | committer: Geoffrey Métais

Do not inflate favorites section by default

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

 vlc-android/res/layout/directory_browser.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/directory_browser.xml b/vlc-android/res/layout/directory_browser.xml
index 6d73a1ae5..254c664f3 100644
--- a/vlc-android/res/layout/directory_browser.xml
+++ b/vlc-android/res/layout/directory_browser.xml
@@ -32,7 +32,7 @@
                 app:layout_constraintTop_toBottomOf="@+id/searchButton"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintRight_toRightOf="parent"
-                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE}" />
+                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE, default=gone}" />
             <android.support.v7.widget.RecyclerView
                 android:id="@+id/favorites_list"
                 android:layout_width="@dimen/default_content_width"
@@ -41,7 +41,7 @@
                 app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/favorites_title"
                 android:background="?attr/background_default"
-                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE}" />
+                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE, default=gone}" />
             <TextView
                 android:id="@+id/folders_title"
                 android:layout_width="@dimen/default_content_width"
@@ -52,7 +52,7 @@
                 app:layout_constraintTop_toBottomOf="@+id/favorites_list"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintRight_toRightOf="parent"
-                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE}" />
+                android:visibility="@{showFavorites ? View.VISIBLE : View.GONE, default=gone}" />
             <android.support.v7.widget.RecyclerView
                 android:id="@+id/network_list"
                 android:layout_width="@dimen/default_content_width"



More information about the Android mailing list