mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
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:
@@ -30,7 +30,5 @@ data class BubbleBarBubble(
|
||||
val appName: String
|
||||
) {
|
||||
|
||||
fun getKey(): String {
|
||||
return info.key
|
||||
}
|
||||
val key: String = info.key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user