Commit 7536a25b by Haruki Hasegawa

Call removeCallbacksAndMessages() in MediaController#release()

This fixes the NPE ocuured in the MediaControllerImplLegacy#connectToSession()
right after MediaController#release() is called.
parent db1a1dc4
...@@ -417,6 +417,7 @@ public class MediaController implements Player { ...@@ -417,6 +417,7 @@ public class MediaController implements Player {
return; return;
} }
released = true; released = true;
applicationHandler.removeCallbacksAndMessages(null);
try { try {
impl.release(); impl.release();
} catch (Exception e) { } catch (Exception e) {
......
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 sign in to comment