From 236726f0ce531bb151262da20d7e43b424b5d4a6 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Fri, 18 Mar 2011 11:03:57 -0700 Subject: bug:4128300 allow deletion of downloads in progress this functionality was broken when CAB was added to Downloads app Change-Id: I00e7313650f872334d6a38dbaff7f97909e2c59c --- ui/src/com/android/providers/downloads/ui/DownloadList.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/src/com/android/providers/downloads') diff --git a/ui/src/com/android/providers/downloads/ui/DownloadList.java b/ui/src/com/android/providers/downloads/ui/DownloadList.java index 810e93e6..09573c6d 100644 --- a/ui/src/com/android/providers/downloads/ui/DownloadList.java +++ b/ui/src/com/android/providers/downloads/ui/DownloadList.java @@ -132,6 +132,10 @@ public class DownloadList extends Activity { private class MyDataSetObserver extends DataSetObserver { @Override public void onChanged() { + // ignore change notification if there are selections + if (mSelectedIds.size() > 0) { + return; + } // may need to switch to or from the empty view chooseListToShow(); ensureSomeGroupIsExpanded(); -- cgit v1.2.3