[Android] Support for fragments in the VideoList Menu
Jean-Baptiste Kempf
git at videolan.org
Thu Jun 21 00:03:55 CEST 2012
android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 21 00:03:41 2012 +0200| [65a0aae0e2ef1d55ead29e99d1f538821fc318a1] | committer: Jean-Baptiste Kempf
Support for fragments in the VideoList Menu
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=65a0aae0e2ef1d55ead29e99d1f538821fc318a1
---
vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 7c84fb9..2d2d506 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListActivity.java
@@ -162,14 +162,14 @@ public class VideoListActivity extends SherlockListFragment implements ISortable
playVideo(info.position);
break;
case MENU_INFO:
- Intent intent = new Intent(this, MediaInfoActivity.class);
+ Intent intent = new Intent(getActivity(), MediaInfoActivity.class);
intent.putExtra("itemLocation",
mVideoAdapter.getItem(info.position).getLocation());
startActivity(intent);
break;
case MENU_DELETE:
final int positionDelete = info.position;
- AlertDialog alertDialog = new AlertDialog.Builder(this.getParent())
+ AlertDialog alertDialog = new AlertDialog.Builder(getActivity().getParent())
.setTitle(R.string.confirm_delete)
.setMessage(R.string.validation)
.setIcon(android.R.drawable.ic_dialog_alert)
More information about the Android
mailing list