Change default collection names from 'Default' to be descriptive

Fixes https://github.com/etesync/android/issues/118
pull/122/head
Tom Hacohen 4 years ago
parent 6eb5c10fe8
commit 80a9f3a645

@ -37,7 +37,11 @@ class CollectionInfo : com.etesync.journalmanager.model.CollectionInfo() {
companion object {
fun defaultForServiceType(service: Type): CollectionInfo {
val info = CollectionInfo()
info.displayName = "Default"
info.displayName = when (service) {
Type.ADDRESS_BOOK -> "My Contacts",
Type.CALENDAR -> "My Calendar",
Type.TASKS -> "My Tasks",
}
info.selected = true
info.enumType = service

Loading…
Cancel
Save