Fix DisplayGroup event reporting behavior.
The check for whether a group had been previously updated was incorrect. Bug: 182322424 Test: Add a DisplayGroup and see the correct event is fired. Change-Id: I085b6b1e7cdf73a4dd8311c50e26a4f2d4a9e769
This commit is contained in:
@@ -357,7 +357,7 @@ class LogicalDisplayMapper implements DisplayDeviceRepository.Listener {
|
||||
for (int i = mDisplayGroups.size() - 1; i >= 0; i--) {
|
||||
final int groupId = mDisplayGroups.keyAt(i);
|
||||
final DisplayGroup group = mDisplayGroups.valueAt(i);
|
||||
final boolean wasPreviouslyUpdated = mUpdatedDisplayGroups.indexOfKey(groupId) < 0;
|
||||
final boolean wasPreviouslyUpdated = mUpdatedDisplayGroups.indexOfKey(groupId) > -1;
|
||||
final int changeCount = group.getChangeCountLocked();
|
||||
|
||||
if (group.isEmptyLocked()) {
|
||||
|
||||
Reference in New Issue
Block a user