make fragments nullable at refreshing

This commit is contained in:
tibbi
2020-05-13 17:53:26 +02:00
parent 8bee80fe41
commit cadc587f6b

View File

@ -262,8 +262,8 @@ class MainActivity : SimpleActivity() {
viewpager.currentItem = config.lastUsedViewPagerPage
}
contacts_fragment.refreshItems()
recents_fragment.refreshItems()
contacts_fragment?.refreshItems()
recents_fragment?.refreshItems()
}
private fun getAllFragments() = arrayListOf(contacts_fragment, recents_fragment).toMutableList() as ArrayList<MyViewPagerFragment>