Optimize call to queryIntentActivities()
authorJean-Baptiste Queru <jbq@google.com>
Sat, 28 Feb 2009 00:53:12 +0000 (16:53 -0800)
committerJean-Baptiste Queru <jbq@google.com>
Sat, 28 Feb 2009 00:53:12 +0000 (16:53 -0800)
commitda4093923903a53273c7ba86daaa5af0d1cf3d97
tree09e4baf7346abb46970f73624acae443bb54cd3a
parent17e1fece639f129081d53a65d12fdeeca6322605
Optimize call to queryIntentActivities()

Replace a call to queryIntentActivities() with a calls to
resolveActivity(). This is done since the only purpose of the call
is to check if the returned list is empty or non-empty. It's
inefficient to move an entire list across the process boundary,
only to discard it.
src/com/android/providers/downloads/Helpers.java