From c2fb15f7689a10c7fe3b6c1f1ed0ce1f5a95ba9b Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 19 Feb 2009 10:57:36 -0800 Subject: auto import from //branches/cupcake/...@132276 --- src/com/android/providers/downloads/DownloadService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/providers/downloads/DownloadService.java') diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index d4b5f1e6..0600cfb6 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -623,11 +623,11 @@ public class DownloadService extends Service { // nothing mimetypeIntent.setDataAndType(Uri.fromParts("file", "", null), info.mimetype); - List list = getPackageManager().queryIntentActivities(mimetypeIntent, + ResolveInfo ri = getPackageManager().resolveActivity(mimetypeIntent, PackageManager.MATCH_DEFAULT_ONLY); //Log.i(Constants.TAG, "*** QUERY " + mimetypeIntent + ": " + list); - if (list.size() == 0) { + if (ri == null) { if (Config.LOGD) { Log.d(Constants.TAG, "no application to handle MIME type " + info.mimetype); } -- cgit v1.2.3