diff options
Diffstat (limited to 'src/com/android/browser/BrowserActivity.java')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 72ed2ec..101157c 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -47,6 +47,7 @@ import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.net.ConnectivityManager; +import android.net.DownloadManager; import android.net.NetworkInfo; import android.net.Uri; import android.net.WebAddress; @@ -1447,7 +1448,7 @@ public class BrowserActivity extends Activity break; case R.id.view_downloads_menu_id: - viewDownloads(null); + viewDownloads(); break; case R.id.window_one_menu_id: @@ -3566,12 +3567,9 @@ public class BrowserActivity extends Activity * menu to see the download window. It shows the download window on top of * the current window. */ - private void viewDownloads(Uri downloadRecord) { - Intent intent = new Intent(this, - BrowserDownloadPage.class); - intent.setData(downloadRecord); - startActivityForResult(intent, BrowserActivity.DOWNLOAD_PAGE); - + private void viewDownloads() { + Intent intent = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS); + startActivity(intent); } /** @@ -3994,7 +3992,6 @@ public class BrowserActivity extends Activity // activity requestCode final static int COMBO_PAGE = 1; - final static int DOWNLOAD_PAGE = 2; final static int PREFERENCES_PAGE = 3; final static int FILE_SELECTED = 4; |