diff options
| author | 2024-11-06 09:02:37 +0000 | |
|---|---|---|
| committer | 2024-11-06 09:02:37 +0000 | |
| commit | 4d1ca400951cb2870770203f18859e2102288e57 (patch) | |
| tree | c2e2140e50d0e40de018096eacab926e43fe5d93 | |
| parent | c79e8f971753462aaace695d220286b65f3c1735 (diff) | |
| parent | 5f8b36994ac29979ccc518ae3e558c117bfb7e31 (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.kt | 2 |
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) } } |