[Android] DirectoryViewFragment: return true when handling event cases
Edward Wang
git at videolan.org
Tue Sep 2 10:12:25 CEST 2014
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Sep 1 13:41:17 2014 -0700| [62ca25d6a4795a5ed29b474c279e73680795e7e7] | committer: Edward Wang
DirectoryViewFragment: return true when handling event cases
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=62ca25d6a4795a5ed29b474c279e73680795e7e7
---
vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
index ea38de5..5a2f4f6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
@@ -146,10 +146,13 @@ public class DirectoryViewFragment extends ListFragment implements ISortable {
}
});
alertDialog.show();
+ return true;
} else if(id == R.id.directory_view_play_audio) {
AudioServiceController.getInstance().load(mediaLocation, true);
+ return true;
} else if(id == R.id.directory_view_play_video) {
VideoPlayerActivity.start(getActivity(), mediaLocation);
+ return true;
}
return super.onContextItemSelected(item);
}
More information about the Android
mailing list