[Android] Re-enable the context menu
Ludovic Fauvet
git at videolan.org
Thu Jun 21 12:59:53 CEST 2012
android | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Jun 21 12:58:21 2012 +0200| [e81fce7216e9a7c0732192897f2aa9a0bc9331c8] | committer: Ludovic Fauvet
Re-enable the context menu
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=e81fce7216e9a7c0732192897f2aa9a0bc9331c8
---
.../src/org/videolan/vlc/gui/video/VideoListActivity.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
index 65cafa5..6c36a02 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
@@ -87,7 +87,6 @@ public class VideoListActivity extends SherlockListFragment implements ISortable
mThumbnailerManager = new ThumbnailerManager(this);
setListAdapter(mVideoAdapter);
- //getListView().setOnCreateContextMenuListener(contextMenuListener);
}
@Override
@@ -102,6 +101,12 @@ public class VideoListActivity extends SherlockListFragment implements ISortable
}
@Override
+ public void onViewCreated(View view, Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
+ getListView().setOnCreateContextMenuListener(contextMenuListener);
+ }
+
+ @Override
public void onPause()
{
super.onPause();
More information about the Android
mailing list