1
0
mirror of https://github.com/etesync/android synced 2025-01-10 15:51:08 +00:00

Cleanup how we create address book names.

This commit is contained in:
Tom Hacohen 2020-09-09 08:23:06 +03:00
parent 9bfeb0c347
commit 52dcd459d9

View File

@ -140,13 +140,7 @@ class LocalAddressBook(
val col = cachedCollection.col
val meta = cachedCollection.meta
val displayName = meta.name
val sb = StringBuilder(displayName)
sb.append(" (")
.append(mainAccount.name)
.append(" ")
.append(col.uid.substring(0, 4))
.append(")")
return sb.toString()
return "${displayName} (${mainAccount.name} ${col.uid.substring(0, 2)})"
}
fun initialUserData(mainAccount: Account, url: String): Bundle {