[Android] Fix soft back button not working in 'About' view
Geoffrey Métais
git at videolan.org
Tue Apr 2 18:30:41 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 2 18:30:10 2019 +0200| [07850f91a7b6d3237793173935d455e9610f2248] | committer: Geoffrey Métais
Fix soft back button not working in 'About' view
> https://code.videolan.org/videolan/vlc-android/commit/07850f91a7b6d3237793173935d455e9610f2248
---
vlc-android/src/org/videolan/vlc/gui/ContentActivity.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
index 86988465f..2885ae719 100644
--- a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
@@ -97,10 +97,9 @@ public class ContentActivity extends AudioPlayerContainerActivity implements Sea
public boolean onCreateOptionsMenu(final Menu menu) {
if (AndroidDevices.isAndroidTv) return false;
final Fragment current = getCurrentFragment();
- if (current instanceof AboutFragment)
- return false;
- getMenuInflater().inflate(R.menu.activity_option, menu);
super.onCreateOptionsMenu(menu);
+ if (current instanceof AboutFragment) return true;
+ getMenuInflater().inflate(R.menu.activity_option, menu);
if (current instanceof ExtensionBrowser){
menu.findItem(R.id.ml_menu_last_playlist).setVisible(false);
menu.findItem(R.id.ml_menu_sortby).setVisible(false);
More information about the Android
mailing list