summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2013-12-04 15:34:23 -0800
committerSelim Gurun <sgurun@google.com>2013-12-04 15:34:23 -0800
commitdd44be0b2e29ee043ac8c25dba34f11b9c018c46 (patch)
tree305fe0cc7c86a21eb4332981ebde717a17de345f
parent60ae2f7011dca06bef35460208d473e182e16ab3 (diff)
downloadandroid_packages_apps_HTMLViewer-dd44be0b2e29ee043ac8c25dba34f11b9c018c46.tar.gz
android_packages_apps_HTMLViewer-dd44be0b2e29ee043ac8c25dba34f11b9c018c46.tar.bz2
android_packages_apps_HTMLViewer-dd44be0b2e29ee043ac8c25dba34f11b9c018c46.zip
Do not add mimetype to url as a query parameter
Bug: 11654127 Adding mimetype to url as a query parameter is a bad practice as it requires us to inject app specific behavior to webview. There also seems no reason to add this, so removing. Change-Id: Ib2e5198981f2d37128ab545a33b83e8109bf3eef
-rw-r--r--src/com/android/htmlviewer/HTMLViewerActivity.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/com/android/htmlviewer/HTMLViewerActivity.java b/src/com/android/htmlviewer/HTMLViewerActivity.java
index 1c42441..2e46e49 100644
--- a/src/com/android/htmlviewer/HTMLViewerActivity.java
+++ b/src/com/android/htmlviewer/HTMLViewerActivity.java
@@ -103,10 +103,6 @@ public class HTMLViewerActivity extends Activity {
String contentUri = "file".equals(uri.getScheme())
? FileContentProvider.BASE_URI + uri.getEncodedPath()
: uri.toString();
- String intentType = intent.getType();
- if (intentType != null) {
- contentUri += "?" + intentType;
- }
mWebView.loadUrl(contentUri);
}
}