Change-Id: Ibe1e9fc6aa17ce6838a1e879e22c93f4dace428b
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
m_SearchProvider.search(str);
elm_genlist_filter_set(m_Genlist->getEvasObject(), (void *) str);
updateEmptyState();
+
+ if (!isSearching) {
+ for (auto &&group : m_PersonGroups) {
+ for (auto &&item : *group.second) {
+ PersonItem *personItem = static_cast<PersonItem *>(item);
+ personItem->setExcluded(false);
+ }
+ }
+ }
}
const char *str = (const char *) filter;
if (str && *str) {
bool isEqual = (bool) m_SearchData.getSearchResult();
- setExcluded(!isEqual);
return isEqual;
}
- setExcluded(false);
return true;
}
{
elm_genlist_item_fields_update(getObjectItem(), PART_CONTACT_NAME, ELM_GENLIST_ITEM_FIELD_TEXT);
elm_genlist_item_fields_update(getObjectItem(), PART_SUBTEXT, ELM_GENLIST_ITEM_FIELD_TEXT);
+ setExcluded(m_SearchData.getSearchResult() == nullptr);
}