[Android] Hide keyboard on any menu action

Geoffrey Métais git at videolan.org
Wed Apr 27 15:21:43 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 27 15:05:33 2016 +0200| [934194a742a55e36e852b28eb744c9697c79a749] | committer: Geoffrey Métais

Hide keyboard on any menu action

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index cfe2889..0a058aa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -616,6 +616,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Filter
      */
     @Override
     public boolean onOptionsItemSelected(MenuItem item) {
+        UiTools.setKeyboardVisibility(mDrawerLayout, false);
 
         // Current fragment loaded
         Fragment current = getSupportFragmentManager().findFragmentById(R.id.fragment_placeholder);



More information about the Android mailing list