Merge "Fix DisplayDeviceConfig crash for values > 255" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
77785b6a72
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user