diff options
author | Andrei Popescu <andreip@google.com> | 2009-10-23 13:49:46 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-10-23 13:53:14 +0100 |
commit | 46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9 (patch) | |
tree | 2b88d9a944edc4c72615093842490c08ef7c75ac | |
parent | c6bead14fe6fe70bcfd8802ee9f0259476a074ce (diff) | |
download | frameworks_base-46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9.zip frameworks_base-46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9.tar.gz frameworks_base-46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9.tar.bz2 |
Make the VideoView go away automatically at the end of playback.
Fixes http://b/issue?id=2210018
-rw-r--r-- | core/java/android/webkit/HTML5VideoViewProxy.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/webkit/HTML5VideoViewProxy.java b/core/java/android/webkit/HTML5VideoViewProxy.java index b7a9065..3e0be1c 100644 --- a/core/java/android/webkit/HTML5VideoViewProxy.java +++ b/core/java/android/webkit/HTML5VideoViewProxy.java @@ -199,6 +199,8 @@ class HTML5VideoViewProxy extends Handler public void playbackEnded() { Message msg = Message.obtain(mWebCoreHandler, ENDED); mWebCoreHandler.sendMessage(msg); + // also send a message to ourselves to return to the WebView + sendMessage(obtainMessage(ENDED)); } // Handler for the messages from WebCore thread to the UI thread. @@ -224,6 +226,7 @@ class HTML5VideoViewProxy extends Handler VideoPlayer.pause(this); break; } + case ENDED: case ERROR: { WebChromeClient client = mWebView.getWebChromeClient(); if (client != null) { |