From b7d3d64d68d5cec4a2643bd0722d5ea36e5feae3 Mon Sep 17 00:00:00 2001 From: Liran Binyamin Date: Fri, 5 May 2023 13:23:03 -0400 Subject: [PATCH] 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 --- .../com/android/launcher3/taskbar/bubbles/BubbleBarBubble.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarBubble.kt b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarBubble.kt index b1633e7156..3cd5f75934 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarBubble.kt +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarBubble.kt @@ -30,7 +30,5 @@ data class BubbleBarBubble( val appName: String ) { - fun getKey(): String { - return info.key - } + val key: String = info.key }