[Android] Remove hack
Geoffrey Métais
git at videolan.org
Mon Jan 19 16:42:26 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 16 15:10:43 2015 +0100| [08637f5fe89c45218dd70dbe2734012dd18ab62c] | committer: Geoffrey Métais
Remove hack
No duplicate menu seen with this hack removed.
maybe thank to AppCompat update or because fragments are now backstacked
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=08637f5fe89c45218dd70dbe2734012dd18ab62c
---
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);
More information about the Android
mailing list