Skip to content

Commit

Permalink
remove all message and callback when destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
tcking committed Apr 26, 2016
1 parent bf71456 commit 62c15e8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,7 @@ private void setFullScreen(boolean fullScreen) {

public void onDestroy() {
orientationEventListener.disable();
handler.removeMessages(MESSAGE_RESTART_PLAY);
handler.removeMessages(MESSAGE_FADE_OUT);
handler.removeMessages(MESSAGE_SEEK_NEW_POSITION);
handler.removeCallbacksAndMessages(null);
videoView.stopPlayback();
}

Expand Down

0 comments on commit 62c15e8

Please sign in to comment.