Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ab77d12 authored by Sean Stout's avatar Sean Stout
Browse files

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
parent 85399be2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -357,7 +357,7 @@ class LogicalDisplayMapper implements DisplayDeviceRepository.Listener {
        for (int i = mDisplayGroups.size() - 1; i >= 0; i--) {
        for (int i = mDisplayGroups.size() - 1; i >= 0; i--) {
            final int groupId = mDisplayGroups.keyAt(i);
            final int groupId = mDisplayGroups.keyAt(i);
            final DisplayGroup group = mDisplayGroups.valueAt(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();
            final int changeCount = group.getChangeCountLocked();


            if (group.isEmptyLocked()) {
            if (group.isEmptyLocked()) {