mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	add null checks at search query change updates
This commit is contained in:
		| @@ -166,7 +166,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) | ||||
|     } | ||||
|  | ||||
|     fun onSearchQueryChanged(text: String) { | ||||
|         (fragment_list.adapter as ContactsAdapter).apply { | ||||
|         (fragment_list.adapter as? ContactsAdapter)?.apply { | ||||
|             val filtered = contactsIgnoringSearch.filter { | ||||
|                 it.getFullName(startNameWithSurname).contains(text, true) || | ||||
|                         it.phoneNumbers.any { it.value.contains(text, true) } || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user