Lookup notification package with PM#getApplicationInfoAsUser
Fixes: 143057272 Test: manual Change-Id: I0ebdb6fd8d8035b4b223685c4c8474ba87c5abd4
This commit is contained in:
@@ -64,14 +64,14 @@ class PeopleHubDataSourceImpl @Inject constructor(
|
||||
})
|
||||
}
|
||||
|
||||
private fun removeVisibleEntry(entry: NotificationEntry?) {
|
||||
if (entry?.extractPersonKey()?.let(peopleHubManager::removeActivePerson) == true) {
|
||||
private fun removeVisibleEntry(entry: NotificationEntry) {
|
||||
if (entry.extractPersonKey()?.let(peopleHubManager::removeActivePerson) == true) {
|
||||
updateUi()
|
||||
}
|
||||
}
|
||||
|
||||
private fun addVisibleEntry(entry: NotificationEntry?) {
|
||||
if (entry?.extractPerson()?.let(peopleHubManager::addActivePerson) == true) {
|
||||
private fun addVisibleEntry(entry: NotificationEntry) {
|
||||
if (entry.extractPerson()?.let(peopleHubManager::addActivePerson) == true) {
|
||||
updateUi()
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ private fun NotificationEntry.extractPerson(): PersonModel? {
|
||||
|
||||
val context = row.context
|
||||
val pm = context.packageManager
|
||||
val appInfo = pm.getApplicationInfo(sbn.packageName, 0)
|
||||
val appInfo = pm.getApplicationInfoAsUser(sbn.packageName, 0, sbn.user)
|
||||
|
||||
val badgedAvatar = object : Drawable() {
|
||||
override fun draw(canvas: Canvas) {
|
||||
|
||||
Reference in New Issue
Block a user