Merge "Ensure configuration is not null." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
31d3853edd
@@ -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