mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-01 19:22:11 -05:00
change isFirstResume only if we have the required permissions
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user