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

Commit 81945db9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use HwLight.type as the key of mLightsByType" am: ee4446c0 am: 9b53553c am: afea9341

parents 2436082b afea9341
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -465,9 +465,10 @@ public class LightsService extends SystemService {
        }

        for (int i = mLightsById.size() - 1; i >= 0; i--) {
            final int type = mLightsById.keyAt(i);
            LightImpl light = mLightsById.valueAt(i);
            final int type = light.mHwLight.type;
            if (0 <= type && type < mLightsByType.length) {
                mLightsByType[type] = mLightsById.valueAt(i);
                mLightsByType[type] = light;
            }
        }
    }