diff options
author | Steve Howard <showard@google.com> | 2010-09-08 17:15:27 -0700 |
---|---|---|
committer | Steve Howard <showard@google.com> | 2010-09-10 16:27:51 -0700 |
commit | 71e7fda9135a0915af1fd419d07ebf85ad09beb4 (patch) | |
tree | 965315a68abef66c21b154856923e35b9eab4b74 /src/com/android/providers/downloads/Helpers.java | |
parent | f8ccad3e970434111b3920dc639e05ca48ca66c2 (diff) | |
download | android_packages_providers_DownloadProvider-71e7fda9135a0915af1fd419d07ebf85ad09beb4.tar.gz android_packages_providers_DownloadProvider-71e7fda9135a0915af1fd419d07ebf85ad09beb4.tar.bz2 android_packages_providers_DownloadProvider-71e7fda9135a0915af1fd419d07ebf85ad09beb4.zip |
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 "<Unknown>" 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
Diffstat (limited to 'src/com/android/providers/downloads/Helpers.java')
-rw-r--r-- | src/com/android/providers/downloads/Helpers.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/Helpers.java b/src/com/android/providers/downloads/Helpers.java index 5d546ff6..42a49f11 100644 --- a/src/com/android/providers/downloads/Helpers.java +++ b/src/com/android/providers/downloads/Helpers.java @@ -529,7 +529,7 @@ public class Helpers { */ public static void validateSelection(String selection, Set<String> allowedColumns) { try { - if (selection == null) { + if (selection == null || selection.isEmpty()) { return; } Lexer lexer = new Lexer(selection, allowedColumns); |