mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-05 12:26:45 +01:00
show Phone Storage if nothing else shows up, should fix #80
This commit is contained in:
parent
abbeb218b8
commit
0b432224c1
@ -524,6 +524,10 @@ class ContactsHelper(val activity: BaseSimpleActivity) {
|
||||
cursor?.close()
|
||||
}
|
||||
|
||||
if (sources.isEmpty() && activity.config.localAccountName.isEmpty() && activity.config.localAccountType.isEmpty()) {
|
||||
sources.add(ContactSource("", ""))
|
||||
}
|
||||
|
||||
sources.add(ContactSource(activity.getString(R.string.phone_storage_hidden), SMT_PRIVATE))
|
||||
callback(ArrayList(sources))
|
||||
}.start()
|
||||
|
Loading…
Reference in New Issue
Block a user