1
0
mirror of https://github.com/etesync/android synced 2025-01-11 00:01:12 +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 col = cachedCollection.col
val meta = cachedCollection.meta val meta = cachedCollection.meta
val displayName = meta.name val displayName = meta.name
val sb = StringBuilder(displayName) return "${displayName} (${mainAccount.name} ${col.uid.substring(0, 2)})"
sb.append(" (")
.append(mainAccount.name)
.append(" ")
.append(col.uid.substring(0, 4))
.append(")")
return sb.toString()
} }
fun initialUserData(mainAccount: Account, url: String): Bundle { fun initialUserData(mainAccount: Account, url: String): Bundle {