OSDN Git Service

Merge change 22064 into eclair
authorAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 21 Aug 2009 18:48:50 +0000 (11:48 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 21 Aug 2009 18:48:50 +0000 (11:48 -0700)
commit02c5fabcfd9e1c258b2cdef7a851cadea85f2869
tree500aedb3b5135bc9e0753c50e09face434617ad6
parentacae2c214279aa2d2d26f847ed3b122c5774ed72
parentc0b23d3f0bb42b26950512590d5ebd6d3373032d
Merge change 22064 into eclair

* changes:
  Add type to filter option to list view Make ListAdapter implement Filterable. Add new implementation for Filter to search based on prefixes. When creating the list include the filter option to create actual list entries. Since Filter.performFiltering is done on a work thread, introduce a new lock and a HashMap of packages matching a prefix which is then used to create a filtered list of applications. Also separte out modifying mAppLocalList which is the basis for list and the dependent mFilterMap used by Filter.performFiltering method to Locked methods for clarity. Note that mAppLocalList is manipulated on main UI thread everywhere but mFilterMap is not.