diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt index c20fb24b..4181dc2c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/MainActivity.kt @@ -122,12 +122,16 @@ class MainActivity : SimpleActivity(), RefreshContactsListener { if (viewpager.adapter == null) { initFragments() } + contacts_fragment?.initContacts() contacts_fragment?.onActivityResume() favorites_fragment?.initContacts() favorites_fragment?.onActivityResume() } - isFirstResume = false + + if (hasPermission(PERMISSION_WRITE_CONTACTS)) { + isFirstResume = false + } } override fun onPause() {