make sure we have the database created in time at launch
This commit is contained in:
parent
fd055152df
commit
9cb647ca12
|
@ -24,6 +24,7 @@ import com.simplemobiletools.contacts.dialogs.ExportContactsDialog
|
|||
import com.simplemobiletools.contacts.dialogs.FilterContactSourcesDialog
|
||||
import com.simplemobiletools.contacts.dialogs.ImportContactsDialog
|
||||
import com.simplemobiletools.contacts.extensions.config
|
||||
import com.simplemobiletools.contacts.extensions.dbHelper
|
||||
import com.simplemobiletools.contacts.extensions.getTempFile
|
||||
import com.simplemobiletools.contacts.helpers.ContactsHelper
|
||||
import com.simplemobiletools.contacts.helpers.VcfExporter
|
||||
|
@ -53,6 +54,9 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||
appLaunched()
|
||||
setupTabColors()
|
||||
|
||||
// just get a reference to the database to make sure it is created properly
|
||||
dbHelper
|
||||
|
||||
handlePermission(PERMISSION_READ_CONTACTS) {
|
||||
if (it) {
|
||||
handlePermission(PERMISSION_WRITE_CONTACTS) {
|
||||
|
|
Loading…
Reference in New Issue