Do not show the downloads page without the user explicitly requesting it.
Fixes http://b/issue?id=1671150
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 0167a94..92e1968 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -2955,7 +2955,6 @@
} else {
final Uri contentUri =
getContentResolver().insert(Downloads.Impl.CONTENT_URI, values);
- viewDownloads(contentUri);
}
}
@@ -3529,10 +3528,10 @@
/*
* This method is called as a result of the user selecting the options
- * menu to see the download window, or when a download changes state. It
- * shows the download window ontop of the current window.
+ * menu to see the download window. It shows the download window on top of
+ * the current window.
*/
- /* package */ void viewDownloads(Uri downloadRecord) {
+ private void viewDownloads(Uri downloadRecord) {
Intent intent = new Intent(this,
BrowserDownloadPage.class);
intent.setData(downloadRecord);