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()
|
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))
|
sources.add(ContactSource(activity.getString(R.string.phone_storage_hidden), SMT_PRIVATE))
|
||||||
callback(ArrayList(sources))
|
callback(ArrayList(sources))
|
||||||
}.start()
|
}.start()
|
||||||
|
|
Loading…
Reference in New Issue