diff options
| author | Scott Kennedy <skennedy@google.com> | 2014-09-12 01:48:20 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-12 01:48:20 +0000 |
| commit | eed6943eb5a1c7b8d68efc38f1150ee6f891688b (patch) | |
| tree | 67649c41c8810d4f2c35e0a705dfe77bc827bb14 | |
| parent | 14efc5795c38120de239fad3d44b1b8b81045043 (diff) | |
| parent | 2a87fbfbbee4279c399980cba42de1d361a8ad56 (diff) | |
| download | android_frameworks_opt_chips-eed6943eb5a1c7b8d68efc38f1150ee6f891688b.tar.gz android_frameworks_opt_chips-eed6943eb5a1c7b8d68efc38f1150ee6f891688b.tar.bz2 android_frameworks_opt_chips-eed6943eb5a1c7b8d68efc38f1150ee6f891688b.zip | |
am 2a87fbfb: FilterListener#onFilterComplete(count) was returning the incorrect count of 1 always, rather than how many entries exist.
* commit '2a87fbfbbee4279c399980cba42de1d361a8ad56':
FilterListener#onFilterComplete(count) was returning the incorrect count of 1 always, rather than how many entries exist.
| -rw-r--r-- | src/com/android/ex/chips/BaseRecipientAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/ex/chips/BaseRecipientAdapter.java b/src/com/android/ex/chips/BaseRecipientAdapter.java index b3474bb..151bdcd 100644 --- a/src/com/android/ex/chips/BaseRecipientAdapter.java +++ b/src/com/android/ex/chips/BaseRecipientAdapter.java @@ -256,7 +256,7 @@ public class BaseRecipientAdapter extends BaseAdapter implements Filterable, Acc results.values = new DefaultFilterResult( entries, entryMap, nonAggregatedEntries, existingDestinations, paramsList); - results.count = 1; + results.count = entries.size(); } } finally { if (defaultDirectoryCursor != null) { @@ -382,7 +382,7 @@ public class BaseRecipientAdapter extends BaseAdapter implements Filterable, Acc } if (!tempEntries.isEmpty()) { results.values = tempEntries; - results.count = 1; + results.count = tempEntries.size(); } } |
