summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/DownloadNotification.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:06:03 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:06:03 -0800
commit1fbad9cfa532f13f6cf03f542febf2e4689edec5 (patch)
tree579995051548349b7b67798b18d006229038bdf4 /src/com/android/providers/downloads/DownloadNotification.java
parent57f55b3cb4f7e4136cde8d1ea12c1e70ec903362 (diff)
downloadandroid_packages_providers_DownloadProvider-1fbad9cfa532f13f6cf03f542febf2e4689edec5.tar.gz
android_packages_providers_DownloadProvider-1fbad9cfa532f13f6cf03f542febf2e4689edec5.tar.bz2
android_packages_providers_DownloadProvider-1fbad9cfa532f13f6cf03f542febf2e4689edec5.zip
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'src/com/android/providers/downloads/DownloadNotification.java')
-rw-r--r--src/com/android/providers/downloads/DownloadNotification.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/com/android/providers/downloads/DownloadNotification.java b/src/com/android/providers/downloads/DownloadNotification.java
index 38cd84f2..ed17ab7a 100644
--- a/src/com/android/providers/downloads/DownloadNotification.java
+++ b/src/com/android/providers/downloads/DownloadNotification.java
@@ -43,14 +43,14 @@ class DownloadNotification {
static final String LOGTAG = "DownloadNotification";
static final String WHERE_RUNNING =
- "(" + Downloads.STATUS + " >= 100) AND (" +
- Downloads.STATUS + " <= 199) AND (" +
- Downloads.VISIBILITY + " IS NULL OR " +
- Downloads.VISIBILITY + " == " + Downloads.VISIBILITY_VISIBLE + " OR " +
- Downloads.VISIBILITY + " == " + Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED + ")";
- static final String WHERE_COMPLETED =
- Downloads.STATUS + " >= 200 AND " +
- Downloads.VISIBILITY + " == " + Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED;
+ "(" + Downloads.STATUS + " >= '100') AND (" +
+ Downloads.STATUS + " <= '199') AND (" +
+ Downloads.VISIBILITY + " IS NULL OR " +
+ Downloads.VISIBILITY + " == '" + Downloads.VISIBILITY_VISIBLE + "' OR " +
+ Downloads.VISIBILITY + " == '" + Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED + "')";
+ static final String WHERE_COMPLETED =
+ Downloads.STATUS + " >= '200' AND " +
+ Downloads.VISIBILITY + " == '" + Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED + "'";
/**
@@ -114,7 +114,7 @@ class DownloadNotification {
Downloads.NOTIFICATION_PACKAGE,
Downloads.NOTIFICATION_CLASS,
Downloads.CURRENT_BYTES, Downloads.TOTAL_BYTES,
- Downloads.STATUS, Downloads.FILENAME
+ Downloads.STATUS, Downloads._DATA
},
WHERE_RUNNING, null, Downloads._ID);
@@ -216,7 +216,7 @@ class DownloadNotification {
Downloads.NOTIFICATION_PACKAGE,
Downloads.NOTIFICATION_CLASS,
Downloads.CURRENT_BYTES, Downloads.TOTAL_BYTES,
- Downloads.STATUS, Downloads.FILENAME,
+ Downloads.STATUS, Downloads._DATA,
Downloads.LAST_MODIFICATION, Downloads.DESTINATION
},
WHERE_COMPLETED, null, Downloads._ID);