summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2014-09-12 01:48:20 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-12 01:48:20 +0000
commiteed6943eb5a1c7b8d68efc38f1150ee6f891688b (patch)
tree67649c41c8810d4f2c35e0a705dfe77bc827bb14
parent14efc5795c38120de239fad3d44b1b8b81045043 (diff)
parent2a87fbfbbee4279c399980cba42de1d361a8ad56 (diff)
downloadandroid_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.java4
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();
}
}