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

Commit 7994d6c5 authored by Fiona Campbell's avatar Fiona Campbell Committed by Automerger Merge Worker
Browse files

Merge "Fix crash in BrightnessTracker write events" into sc-dev am: 27724516

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489536

Change-Id: I6dbefe3adb4c4d2a44b619702ce71627119b3bf1
parents 9d5bf240 27724516
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -567,7 +567,11 @@ public class BrightnessTracker {
                out.attributeLong(null, ATTR_TIMESTAMP, toWrite[i].timeStamp);
                out.attribute(null, ATTR_PACKAGE_NAME, toWrite[i].packageName);
                out.attributeInt(null, ATTR_USER, userSerialNo);
                out.attribute(null, ATTR_UNIQUE_DISPLAY_ID, toWrite[i].uniqueDisplayId);
                String uniqueDisplayId = toWrite[i].uniqueDisplayId;
                if (uniqueDisplayId == null) {
                    uniqueDisplayId = "";
                }
                out.attribute(null, ATTR_UNIQUE_DISPLAY_ID, uniqueDisplayId);
                out.attributeFloat(null, ATTR_BATTERY_LEVEL, toWrite[i].batteryLevel);
                out.attributeBoolean(null, ATTR_NIGHT_MODE, toWrite[i].nightMode);
                out.attributeInt(null, ATTR_COLOR_TEMPERATURE,