mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
make fragments nullable at refreshing
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user