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

Merge commit '3fe36fe589809b732db12054428166adb069f53b' into froyo-plus-aosp

* commit '3fe36fe589809b732db12054428166adb069f53b':
  Avoid calling proxy.playbackEnded() again in onCustomViewHidden().
This commit is contained in:
Andrei Popescu
2010-04-08 09:10:09 -07:00
committed by Android Git Automerger

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) {