diff options
| author | Leon Scroggins <scroggo@google.com> | 2010-02-23 17:26:37 -0500 |
|---|---|---|
| committer | Leon Scroggins <scroggo@google.com> | 2010-02-24 13:47:53 -0500 |
| commit | dcc5eeb63eadd597587a0b2b49998c267b0bcc11 (patch) | |
| tree | f1a61b6b4faddee16944b2efd57e87c43c569bc4 /src/com/android/browser/TabControl.java | |
| parent | 6250474346aebe596f96fc86f998bc4d0dfcc2f0 (diff) | |
| download | packages_apps_Browser-dcc5eeb63eadd597587a0b2b49998c267b0bcc11.tar.gz packages_apps_Browser-dcc5eeb63eadd597587a0b2b49998c267b0bcc11.tar.bz2 packages_apps_Browser-dcc5eeb63eadd597587a0b2b49998c267b0bcc11.zip | |
If a tab was opened solely to download a file, close the tab.
Fix for http://b/issue?id=2217707
Diffstat (limited to 'src/com/android/browser/TabControl.java')
| -rw-r--r-- | src/com/android/browser/TabControl.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index 33b73e8cf..e64f3fb69 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -533,11 +533,6 @@ class TabControl { w.setMapTrackballToArrowKeys(false); // use trackball directly // Enable the built-in zoom w.getSettings().setBuiltInZoomControls(true); - // Attach DownloadManager so that downloads can start in an active or - // a non-active window. This can happen when going to a site that does - // a redirect after a period of time. The user could have switched to - // another tab while waiting for the download to start. - w.setDownloadListener(mActivity); // Add this WebView to the settings observer list and update the // settings final BrowserSettings s = BrowserSettings.getInstance(); |
