mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
change isFirstResume only if we have the required permissions
This commit is contained in:
parent
42eb8e4609
commit
08726093ec
@ -122,12 +122,16 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||||||
if (viewpager.adapter == null) {
|
if (viewpager.adapter == null) {
|
||||||
initFragments()
|
initFragments()
|
||||||
}
|
}
|
||||||
|
|
||||||
contacts_fragment?.initContacts()
|
contacts_fragment?.initContacts()
|
||||||
contacts_fragment?.onActivityResume()
|
contacts_fragment?.onActivityResume()
|
||||||
favorites_fragment?.initContacts()
|
favorites_fragment?.initContacts()
|
||||||
favorites_fragment?.onActivityResume()
|
favorites_fragment?.onActivityResume()
|
||||||
}
|
}
|
||||||
isFirstResume = false
|
|
||||||
|
if (hasPermission(PERMISSION_WRITE_CONTACTS)) {
|
||||||
|
isFirstResume = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user