Loading core/java/android/app/ContextImpl.java +5 −1 Original line number Diff line number Diff line Loading @@ -2944,7 +2944,11 @@ class ContextImpl extends Context { private void updateResourceOverlayConstraints() { if (mResources != null) { mResources.getAssets().setOverlayConstraints(getDisplayId(), getDeviceId()); // Avoid calling getDisplay() here, as it makes a binder call into // DisplayManagerService if the relevant DisplayInfo is not cached in // DisplayManagerGlobal. int displayId = mDisplay != null ? mDisplay.getDisplayId() : Display.DEFAULT_DISPLAY; mResources.getAssets().setOverlayConstraints(displayId, getDeviceId()); } } Loading Loading
core/java/android/app/ContextImpl.java +5 −1 Original line number Diff line number Diff line Loading @@ -2944,7 +2944,11 @@ class ContextImpl extends Context { private void updateResourceOverlayConstraints() { if (mResources != null) { mResources.getAssets().setOverlayConstraints(getDisplayId(), getDeviceId()); // Avoid calling getDisplay() here, as it makes a binder call into // DisplayManagerService if the relevant DisplayInfo is not cached in // DisplayManagerGlobal. int displayId = mDisplay != null ? mDisplay.getDisplayId() : Display.DEFAULT_DISPLAY; mResources.getAssets().setOverlayConstraints(displayId, getDeviceId()); } } Loading