Ensure configuration is not null.
Test: atest
Bug: 256644836
CtsDisplayTestCases:android.display.cts.BrightnessTest#testSetGetSimpleCurve
Change-Id: I566f9006c85c386335cc8d37cb1807fa0b8f9c5b
(cherry picked from commit aa727ba6a4)
Merged-in: I566f9006c85c386335cc8d37cb1807fa0b8f9c5b
This commit is contained in:
@@ -1882,8 +1882,9 @@ public final class DisplayManagerService extends SystemService {
|
||||
if (displayDevice == null) {
|
||||
return;
|
||||
}
|
||||
if (mLogicalDisplayMapper.getDisplayLocked(displayDevice)
|
||||
.getDisplayInfoLocked().type == Display.TYPE_INTERNAL) {
|
||||
if (mLogicalDisplayMapper.getDisplayLocked(displayDevice) != null
|
||||
&& mLogicalDisplayMapper.getDisplayLocked(displayDevice)
|
||||
.getDisplayInfoLocked().type == Display.TYPE_INTERNAL && c != null) {
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.BRIGHTNESS_CONFIGURATION_UPDATED,
|
||||
c.getCurve().first,
|
||||
c.getCurve().second,
|
||||
|
||||
Reference in New Issue
Block a user