Allow group changes for newly visible notifs

Test: manual
Fixes: 153885122
Change-Id: I27352c2214b5b03ca2a13d672bb861514f90d74c
This commit is contained in:
Beverly
2020-05-06 15:50:42 -04:00
parent 27f4c791a2
commit 0874205e63

View File

@@ -184,8 +184,11 @@ public class NotificationViewHierarchyManager implements DynamicPrivacyControlle
mLowPriorityInflationHelper.recheckLowPriorityViewAndInflate(ent, ent.getRow());
boolean isChildInGroup = mGroupManager.isChildInGroupWithSummary(ent.getSbn());
boolean groupChangesAllowed = mVisualStabilityManager.areGroupChangesAllowed()
|| !ent.hasFinishedInitialization();
boolean groupChangesAllowed =
mVisualStabilityManager.areGroupChangesAllowed() // user isn't looking at notifs
|| !ent.hasFinishedInitialization() // notif recently added
|| !mListContainer.containsView(ent.getRow()); // notif recently unfiltered
NotificationEntry parent = mGroupManager.getGroupSummary(ent.getSbn());
if (!groupChangesAllowed) {
// We don't to change groups while the user is looking at them