Merge "Keep a light version of the SBN around" into qt-dev

am: 57dce7b037

Change-Id: Iab74ea14bb9dafb4b60c9fb66f9d7dcb6db4c91d
This commit is contained in:
Julia Reynolds
2019-04-17 06:10:07 -07:00
committed by android-build-merger

View File

@@ -238,7 +238,7 @@ public class Assistant extends NotificationAssistantService {
} }
mSingleThreadExecutor.submit(() -> { mSingleThreadExecutor.submit(() -> {
NotificationEntry entry = NotificationEntry entry =
new NotificationEntry(mPackageManager, sbn, channel, mSmsHelper); new NotificationEntry(mPackageManager, sbn.cloneLight(), channel, mSmsHelper);
SmartActionsHelper.SmartSuggestions suggestions = mSmartActionsHelper.suggest(entry); SmartActionsHelper.SmartSuggestions suggestions = mSmartActionsHelper.suggest(entry);
if (DEBUG) { if (DEBUG) {
Log.d(TAG, String.format( Log.d(TAG, String.format(
@@ -296,7 +296,7 @@ public class Assistant extends NotificationAssistantService {
Ranking ranking = getRanking(sbn.getKey(), rankingMap); Ranking ranking = getRanking(sbn.getKey(), rankingMap);
if (ranking != null && ranking.getChannel() != null) { if (ranking != null && ranking.getChannel() != null) {
NotificationEntry entry = new NotificationEntry(mPackageManager, NotificationEntry entry = new NotificationEntry(mPackageManager,
sbn, ranking.getChannel(), mSmsHelper); sbn.cloneLight(), ranking.getChannel(), mSmsHelper);
String key = getKey( String key = getKey(
sbn.getPackageName(), sbn.getUserId(), ranking.getChannel().getId()); sbn.getPackageName(), sbn.getUserId(), ranking.getChannel().getId());
ChannelImpressions ci = mkeyToImpressions.getOrDefault(key, ChannelImpressions ci = mkeyToImpressions.getOrDefault(key,