[Android] Show options icon only when space is available

Geoffrey Métais git at videolan.org
Thu Jan 17 16:54:20 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 17 16:53:21 2019 +0100| [668ea9b391f739043c01e0dcd0919214a79af43f] | committer: Geoffrey Métais

Show options icon only when space is available

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

 vlc-android/res/menu/activity_option.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/menu/activity_option.xml b/vlc-android/res/menu/activity_option.xml
index 8c74224cf..2305ffa82 100644
--- a/vlc-android/res/menu/activity_option.xml
+++ b/vlc-android/res/menu/activity_option.xml
@@ -22,14 +22,14 @@
         android:id="@+id/ml_menu_last_playlist"
         android:icon="@drawable/ic_menu_lastplaylist"
         android:title="@string/last_playlist"
-        vlc:showAsAction="always|collapseActionView"
+        vlc:showAsAction="ifRoom|collapseActionView"
         android:visible="false"/>
     <item
         android:orderInCategory="2"
         android:title="@string/sortby"
         android:icon="@drawable/ic_menu_sort"
         android:id="@+id/ml_menu_sortby"
-        vlc:showAsAction="always|collapseActionView"
+        vlc:showAsAction="ifRoom|collapseActionView"
         android:visible="false">
         <menu>
             <item



More information about the Android mailing list