don't use hidden constants (to refer Downloads table columns)
bug:3116579
Change-Id: I08408d6a304c330d6b289309ae25464feff0eddd
diff --git a/src/com/android/browser/OpenDownloadReceiver.java b/src/com/android/browser/OpenDownloadReceiver.java
index 99e5f41..f66c332 100644
--- a/src/com/android/browser/OpenDownloadReceiver.java
+++ b/src/com/android/browser/OpenDownloadReceiver.java
@@ -43,16 +43,16 @@
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