summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ioana Alexandru <aioana@google.com> 2024-11-06 09:02:37 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-11-06 09:02:37 +0000
commit4d1ca400951cb2870770203f18859e2102288e57 (patch)
treec2e2140e50d0e40de018096eacab926e43fe5d93
parentc79e8f971753462aaace695d220286b65f3c1735 (diff)
parent5f8b36994ac29979ccc518ae3e558c117bfb7e31 (diff)
Merge "Fetch package context only once per package" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/row/icon/NotificationIconStyleProvider.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/icon/NotificationIconStyleProvider.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/icon/NotificationIconStyleProvider.kt
index 7177a7bd473a..08c1d71b86c9 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/icon/NotificationIconStyleProvider.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/icon/NotificationIconStyleProvider.kt
@@ -73,8 +73,8 @@ constructor(private val userManager: UserManager, dumpManager: DumpManager) :
private val cache = NotifCollectionCache<Boolean>()
override fun shouldShowAppIcon(notification: StatusBarNotification, context: Context): Boolean {
- val packageContext = notification.getPackageContext(context)
return cache.getOrFetch(notification.packageName) {
+ val packageContext = notification.getPackageContext(context)
!belongsToHeadlessSystemApp(packageContext)
}
}