[Android] [PATCH] Remove hack
Geoffrey Métais
geoffrey.metais at gmail.com
Fri Jan 16 15:10:43 CET 2015
No duplicate menu seen with this hack removed.
maybe thank to AppCompat update or because fragments are now backstacked
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index ca44517..fceccb4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -1015,16 +1015,6 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
mCurrentFragment = entry.id;
mSidebarAdapter.setCurrentFragment(mCurrentFragment);
- /*
- * Set user visibility hints to work around weird Android
- * behaviour of duplicate context menu events. TODO
- */
- current.setUserVisibleHint(false);
- getFragment(mCurrentFragment).setUserVisibleHint(true);
- // HACK ALERT: Set underlying audio browser to be invisible too.
- if(current.getTag().equals("tracks"))
- getFragment("audio").setUserVisibleHint(false);
-
if (mFocusedPrior != 0)
findViewById(R.id.ml_menu_search).requestFocus();
mRootContainer.closeDrawer(mSideMenu);
--
2.1.0
More information about the Android
mailing list