1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Change default collection names from 'Default' to be descriptive

Fixes https://github.com/etesync/android/issues/118
This commit is contained in:
Tom Hacohen 2020-07-02 13:27:46 +03:00
parent 6eb5c10fe8
commit 80a9f3a645

View File

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