Merge "Avoid calling proxy.playbackEnded() again in onCustomViewHidden(). It is now always called via the MediaPlayer.onCompletion() callback." into froyo

This commit is contained in:
Andrei Popescu
2010-04-08 09:07:32 -07:00
committed by Android (Google) Code Review

View File

@@ -129,9 +129,10 @@ class HTML5VideoViewProxy extends Handler
// is invoked.
mTimer.cancel();
mTimer = null;
mCurrentProxy.playbackEnded();
if (mVideoView.isPlaying()) {
mVideoView.stopPlayback();
}
mCurrentProxy = null;
mVideoView.stopPlayback();
mLayout.removeView(mVideoView);
mVideoView = null;
if (mProgressView != null) {