commit | 4d1ca400951cb2870770203f18859e2102288e57 | [log] [tgz] |
---|---|---|
author | Ioana Alexandru <aioana@google.com> | Wed Nov 06 09:02:37 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Nov 06 09:02:37 2024 +0000 |
tree | c2e2140e50d0e40de018096eacab926e43fe5d93 | |
parent | c79e8f971753462aaace695d220286b65f3c1735 [diff] | |
parent | 5f8b36994ac29979ccc518ae3e558c117bfb7e31 [diff] |
Merge "Fetch package context only once per package" into main
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 7177a7b..08c1d71 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 @@ 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) } }