Index: android_webview/java/src/org/chromium/android_webview/AwContentsClient.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java |
index acd1e9d7515874b5552d7d1a5f08c7561bab18f9..e56d7d53e3417270703602e56481186bd8928d9c 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java |
@@ -215,8 +215,9 @@ public abstract class AwContentsClient { |
// TODO: Move this code to Aw. Once code is moved |
// and merged to M37 get rid of this. |
String mimeType = "*/*"; |
- if (mAcceptTypes != null && !mAcceptTypes.trim().isEmpty()) |
+ if (mAcceptTypes != null && !mAcceptTypes.trim().isEmpty()) { |
mimeType = mAcceptTypes.split(";")[0]; |
+ } |
Intent i = new Intent(Intent.ACTION_GET_CONTENT); |
i.addCategory(Intent.CATEGORY_OPENABLE); |