[Android] Fix a crash in the VideoList fragment

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:59:08 2012 +0200| [81f509f788d5c2cb798e621be72ba5a5e25f7723] | committer: Ludovic Fauvet

Fix a crash in the VideoList fragment

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=81f509f788d5c2cb798e621be72ba5a5e25f7723
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java |    2 +-
 1 file changed, 1 insertion(+), 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 6c36a02..1b6795a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
@@ -174,7 +174,7 @@ public class VideoListActivity extends SherlockListFragment implements ISortable
                 break;
             case MENU_DELETE:
                 final int positionDelete = info.position;
-                AlertDialog alertDialog = new AlertDialog.Builder(getActivity().getParent())
+                AlertDialog alertDialog = new AlertDialog.Builder(getActivity())
                 .setTitle(R.string.confirm_delete)
                 .setMessage(R.string.validation)
                 .setIcon(android.R.drawable.ic_dialog_alert)



More information about the Android mailing list