summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-03-11 22:58:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-11 22:58:22 +0000
commitb687bc21e10dec09e13756e5fa234bf53315dd2b (patch)
tree27e70980c35f59c5c7da44e314634b1f09963844
parent1c31514ade1d1d2f063509cf746acee11071725e (diff)
parentb17ee6c17c0bac69797587041f8ecdcf9b73d5e9 (diff)
Merge "Null-check notif chan when ident people notifs" into rvc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/people/PeopleNotificationIdentifier.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/PeopleNotificationIdentifier.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/PeopleNotificationIdentifier.kt
index 597bdb9f2e74..be3873a5fd77 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/PeopleNotificationIdentifier.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/PeopleNotificationIdentifier.kt
@@ -83,7 +83,7 @@ class PeopleNotificationIdentifierImpl @Inject constructor(
private val Ranking.personTypeInfo
get() = when {
- channel.isImportantConversation -> TYPE_IMPORTANT_PERSON
+ channel?.isImportantConversation == true -> TYPE_IMPORTANT_PERSON
isConversation -> TYPE_PERSON
else -> TYPE_NON_PERSON
}