Commit 62ca25d6 authored by Edward Wang's avatar Edward Wang

DirectoryViewFragment: return true when handling event cases

parent ea2758a6
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment