Refine code style

This commit is contained in:
Mygod
2019-04-04 18:05:21 +08:00
parent f97afdf8ae
commit 926783cc25
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ object ServiceNotification {
context.resources.getQuantityString(R.plurals.notification_connected_devices, size, size, dev)
}
if (inactive.isNotEmpty()) {
lines += context.getString(R.string.notification_interfaces_inactive) + inactive.joinToString()
lines += context.getString(R.string.notification_interfaces_inactive, inactive.joinToString())
}
return if (lines.size <= 1) builder.setContentText(lines.singleOrNull()).build() else {
val deviceCount = deviceCounts.sumBy { it.value }