show Phone Storage if nothing else shows up, should fix #80

This commit is contained in:
tibbi 2018-03-21 20:42:01 +01:00
parent abbeb218b8
commit 0b432224c1
1 changed files with 4 additions and 0 deletions

View File

@ -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()