[Android] AudioListFragment: Fix a potential crash
Ludovic Fauvet
git at videolan.org
Sat Jun 23 19:12:16 CEST 2012
android | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Jun 23 19:10:33 2012 +0200| [5a9e0a6c7fd88a0d16d7428e65eee7bd4e23ae75] | committer: Ludovic Fauvet
AudioListFragment: Fix a potential crash
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=5a9e0a6c7fd88a0d16d7428e65eee7bd4e23ae75
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
index a198e70..49d9b26 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
@@ -86,6 +86,7 @@ public class AudioListFragment extends SherlockListFragment {
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
+ registerForContextMenu(getListView());
updateList();
}
@@ -93,7 +94,6 @@ public class AudioListFragment extends SherlockListFragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.audio_list, container, false);
mTitle = (TextView) v.findViewById(R.id.title);
- registerForContextMenu(getListView());
return v;
}
More information about the Android
mailing list