[Android] Hide options menu in About view

Geoffrey Métais git at videolan.org
Fri Sep 8 15:43:51 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Sep  8 15:43:07 2017 +0200| [87489040340c9a94a3b35ce7604b5a8704aae262] | committer: Geoffrey Métais

Hide options menu in About view

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

 vlc-android/src/org/videolan/vlc/gui/ContentActivity.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
index 78ad0e246..0ae211eab 100644
--- a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
@@ -47,6 +47,8 @@ public class ContentActivity extends AudioPlayerContainerActivity implements Sea
     @Override
     public boolean onCreateOptionsMenu(Menu menu) {
         mMenu = menu;
+        if (getSupportFragmentManager().findFragmentById(R.id.fragment_placeholder) instanceof AboutFragment)
+            return true;
         getMenuInflater().inflate(R.menu.activity_option, menu);
         if (getCurrentFragment() instanceof ExtensionBrowser){
             menu.findItem(R.id.ml_menu_last_playlist).setVisible(false);



More information about the Android mailing list