summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Wren <cwren@android.com> 2016-04-11 10:33:46 -0400
committer Chris Wren <cwren@android.com> 2016-04-11 10:36:01 -0400
commit1f602dc3264c2aaf3d9f1552077de1c8a0bbf56e (patch)
tree30a0b6d962e6dcf6ab24f0db35dd27ea208d52cf
parente1ccdd13dcc24f8097bbd1a19844b41319daf5eb (diff)
don't copy importance forward
copyRankingInformation should only copy side notes to be used by rankers. Bug: 26919636 Change-Id: I6d0d87d4dc93ced65180ce58a4dcde2cac60e8b6
-rw-r--r--services/core/java/com/android/server/notification/NotificationRecord.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationRecord.java b/services/core/java/com/android/server/notification/NotificationRecord.java
index fd893fa081a5..06bfa0f60903 100644
--- a/services/core/java/com/android/server/notification/NotificationRecord.java
+++ b/services/core/java/com/android/server/notification/NotificationRecord.java
@@ -179,10 +179,7 @@ public final class NotificationRecord {
mRankingTimeMs = calculateRankingTimeMs(previous.getRankingTimeMs());
mCreationTimeMs = previous.mCreationTimeMs;
mVisibleSinceMs = previous.mVisibleSinceMs;
- mUserImportance = previous.mUserImportance;
- mImportance = previous.mImportance;
- mImportanceExplanation = previous.mImportanceExplanation;
- // Don't copy mGlobalSortKey, recompute it.
+ // Don't copy importance information or mGlobalSortKey, recompute them.
}
public Notification getNotification() { return sbn.getNotification(); }