Revert "Keep a light version of the SBN around"

This reverts commit 75a7e2f9e9.

Reason for revert: Turns out this wipes out data we need :(

Change-Id: Id1d79dec17639440eae55e41fb4e91f0d9e6162c
Fixes: 131290765
This commit is contained in:
Julia Reynolds
2019-04-25 13:34:33 +00:00
parent 75a7e2f9e9
commit 3e4966920d

View File

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