mirror of
https://github.com/etesync/android
synced 2025-07-01 12:22:38 +00:00
Change default collection names from 'Default' to be descriptive
Fixes https://github.com/etesync/android/issues/118
This commit is contained in:
parent
6eb5c10fe8
commit
80a9f3a645
@ -37,7 +37,11 @@ class CollectionInfo : com.etesync.journalmanager.model.CollectionInfo() {
|
|||||||
companion object {
|
companion object {
|
||||||
fun defaultForServiceType(service: Type): CollectionInfo {
|
fun defaultForServiceType(service: Type): CollectionInfo {
|
||||||
val info = 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.selected = true
|
||||||
info.enumType = service
|
info.enumType = service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user