summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-10-27 10:15:14 +0100
committerIain Merrick <husky@google.com>2010-10-27 11:28:30 +0100
commit4e7665d2b99b234af369b5723ee2e34f9c47e4aa (patch)
tree3b65f85bf2f4b45b17bd26f88705da2658c09b4c /libs/rs/rsg_ScriptJavaClass.cpp
parentd55f7e56b9761227f0a310b34d9016fde91613d6 (diff)
Only AV formats should be handled by MediaPlayer (Java side)
Must be submitted with corresponding C++ change (I50da7599). When opening a text file in the browser, WebKit was attempting to display it as a movie. This is because the media player now reports that it can handle various document formats, including plain text. See http://b/issue?id=3132917 This CL updates WebViewCore.supportsMimeType() to explicitly check for audio and video formats only. This is called from WebKit via JNI, and doesn't seem to be used elsewhere, so it should be a safe change to make. Renamed to isSupportedMediaMimeType() for clarity. Test: push a text file to /sdcard/foo.txt, and open it in the browser (as file:///sdcard/foo.txt). Change-Id: Id39b770b05ced7c976d8043649845f26115b24c9
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions