summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2010-04-08 09:07:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-04-08 09:07:32 -0700
commit3fe36fe589809b732db12054428166adb069f53b (patch)
treedeaa18754fce3b731a34aa1588f92ceb6e338a98
parentc6c8a1e96f2cccb7b2bf7aec5140a3eacb7a922a (diff)
parent31d2aa1e17f1ee580edb762a6ef634098bba02bb (diff)
downloadframeworks_base-3fe36fe589809b732db12054428166adb069f53b.zip
frameworks_base-3fe36fe589809b732db12054428166adb069f53b.tar.gz
frameworks_base-3fe36fe589809b732db12054428166adb069f53b.tar.bz2
Merge "Avoid calling proxy.playbackEnded() again in onCustomViewHidden(). It is now always called via the MediaPlayer.onCompletion() callback." into froyo
-rw-r--r--core/java/android/webkit/HTML5VideoViewProxy.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/webkit/HTML5VideoViewProxy.java b/core/java/android/webkit/HTML5VideoViewProxy.java
index 42e1539..eee8025 100644
--- a/core/java/android/webkit/HTML5VideoViewProxy.java
+++ b/core/java/android/webkit/HTML5VideoViewProxy.java
@@ -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) {