mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-03 01:07:37 +01:00
add some null checks to filtering contacts adapter entries at search
This commit is contained in:
parent
ebd9399861
commit
2c5daff95c
@ -187,7 +187,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||
}
|
||||
|
||||
fun onSearchOpened() {
|
||||
contactsIgnoringSearch = (fragment_list.adapter as? ContactsAdapter)?.contactItems as ArrayList
|
||||
contactsIgnoringSearch = (fragment_list?.adapter as? ContactsAdapter)?.contactItems as? ArrayList ?: ArrayList()
|
||||
}
|
||||
|
||||
fun onSearchClosed() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user