Update device info on Display.getDeviceProductInfo()
Each getter of the Display class should first call updateDisplayInfoLocked(). Test: presubmit Bug: 179775994 Change-Id: I4df9945cd030296da0e170411af8c66c89f57adf
This commit is contained in:
@@ -1203,7 +1203,10 @@ public final class Display {
|
||||
*/
|
||||
@Nullable
|
||||
public DeviceProductInfo getDeviceProductInfo() {
|
||||
return mDisplayInfo.deviceProductInfo;
|
||||
synchronized (mLock) {
|
||||
updateDisplayInfoLocked();
|
||||
return mDisplayInfo.deviceProductInfo;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user