Commit 26ef79d4 authored by Edward Wang's avatar Edward Wang

src: Don't crash if media is stopped

parent a74e85ba
......@@ -307,6 +307,9 @@ public class AudioService extends Service {
mMediaList.clear();
hideNotification();
// Don't crash if user stopped the media
if(mCurrentMedia == null) return;
// Got video, switch to the video player
Intent intent = new Intent(VLCApplication.getAppContext(), VideoPlayerActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
......
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