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

Commit ee4446c0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use HwLight.type as the key of mLightsByType"

parents 540962a6 f74fde19
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;
            }
        }
    }