From 71e7fda9135a0915af1fd419d07ebf85ad09beb4 Mon Sep 17 00:00:00 2001 From: Steve Howard Date: Wed, 8 Sep 2010 17:15:27 -0700 Subject: Further work on the new downloads UI. * add support for downloads not visible in the UI * add support for restarting failed downloads and downloads for which the file is missing * add "clear selection" button to selection menu * fix DateSortedExpandableListAdapter to ensure the view refreshes properly anytime the underlying data changes * make DownloadList handle when a selected download gets deleted by another app * make DownloadList close a dialog for a pending download when the download starts * show a dialog when the user tries to open a download but the file is missing * display "" when no title is provided for a download * add a test case for DownloadManager.orderBy() (should've gone in the previous commit) Change-Id: Ibf3062e8228e7f2c1270be24d8d5527dfb064658 --- ui/res/layout/download_list.xml | 9 +- ui/res/values/strings.xml | 13 ++ .../ui/DateSortedExpandableListAdapter.java | 15 ++- .../providers/downloads/ui/DownloadAdapter.java | 7 +- .../providers/downloads/ui/DownloadList.java | 147 +++++++++++++++++++-- 5 files changed, 169 insertions(+), 22 deletions(-) (limited to 'ui') diff --git a/ui/res/layout/download_list.xml b/ui/res/layout/download_list.xml index 241bb3d3..696030ff 100644 --- a/ui/res/layout/download_list.xml +++ b/ui/res/layout/download_list.xml @@ -54,8 +54,11 @@