Use a property instead of a getter function for key in BubbleBarBubble. Using a property here is more Kotlin idiomatic.

https://kotlinlang.org/docs/coding-conventions.html#functions-vs-properties
go/kotlin/practices/properties#when

Bug: 281083629
Test: Verified on a physical device
Change-Id: I4c003c6633bf1913ee5e1e86224a679ff3442e2b
This commit is contained in:
Liran Binyamin
2023-05-05 13:23:03 -04:00
parent 46b73c2338
commit b7d3d64d68

View File

@@ -30,7 +30,5 @@ data class BubbleBarBubble(
val appName: String
) {
fun getKey(): String {
return info.key
}
val key: String = info.key
}