diff options
author | Vasu Nori <vnori@google.com> | 2010-10-20 13:09:03 -0700 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2010-10-20 13:36:45 -0700 |
commit | b39546fe994ff9946d387377117ce384704cab13 (patch) | |
tree | a72b4259e07fc571085eefdcf647cffc79104167 /src/com/android/browser/OpenDownloadReceiver.java | |
parent | 6573f9edd734c8dc42251840d6f693058ca4dfd8 (diff) | |
download | android_packages_apps_Gello-b39546fe994ff9946d387377117ce384704cab13.tar.gz android_packages_apps_Gello-b39546fe994ff9946d387377117ce384704cab13.tar.bz2 android_packages_apps_Gello-b39546fe994ff9946d387377117ce384704cab13.zip |
don't use hidden constants (to refer Downloads table columns)
bug:3116579
Change-Id: I08408d6a304c330d6b289309ae25464feff0eddd
Diffstat (limited to 'src/com/android/browser/OpenDownloadReceiver.java')
-rw-r--r-- | src/com/android/browser/OpenDownloadReceiver.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/browser/OpenDownloadReceiver.java b/src/com/android/browser/OpenDownloadReceiver.java index 99e5f410..f66c332f 100644 --- a/src/com/android/browser/OpenDownloadReceiver.java +++ b/src/com/android/browser/OpenDownloadReceiver.java @@ -43,16 +43,16 @@ public class OpenDownloadReceiver extends BroadcastReceiver { try { cursor = cr.query(data, new String[] { Downloads.Impl._ID, Downloads.Impl._DATA, - Downloads.Impl.COLUMN_MIME_TYPE, Downloads.COLUMN_STATUS }, + Downloads.Impl.COLUMN_MIME_TYPE, Downloads.Impl.COLUMN_STATUS }, null, null, null); if (cursor.moveToFirst()) { String filename = cursor.getString(1); String mimetype = cursor.getString(2); String action = intent.getAction(); - if (Downloads.ACTION_NOTIFICATION_CLICKED.equals(action)) { + if (Downloads.Impl.ACTION_NOTIFICATION_CLICKED.equals(action)) { int status = cursor.getInt(3); - if (Downloads.isStatusCompleted(status) - && Downloads.isStatusSuccess(status)) { + if (Downloads.Impl.isStatusCompleted(status) + && Downloads.Impl.isStatusSuccess(status)) { Intent launchIntent = new Intent(Intent.ACTION_VIEW); Uri path = Uri.parse(filename); // If there is no scheme, then it must be a file |