Merge "Fix DisplayDeviceConfig crash for values > 255" into sc-qpr1-dev

This commit is contained in:
Fiona Campbell
2021-08-27 11:19:06 +00:00
committed by Android (Google) Code Review

View File

@@ -590,7 +590,7 @@ public class DisplayDeviceConfig {
newIndex = i - newStart;
final float newBacklightVal;
final float newNitsVal;
isLastValue = mRawBacklight[i] > mBacklightMaximum
isLastValue = mRawBacklight[i] >= mBacklightMaximum
|| i >= mRawBacklight.length - 1;
// Clamp beginning and end to valid backlight values.
if (newIndex == 0) {