Merge "Fixed issue with using wrong display id when creating context for displays" into mnc-dev

This commit is contained in:
Wale Ogunwale
2015-06-09 23:01:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1745,7 +1745,8 @@ class ContextImpl extends Context {
mResourcesManager = ResourcesManager.getInstance();
final int displayId = (createDisplayWithId != Display.INVALID_DISPLAY)
? createDisplayWithId : getDisplayId();
? createDisplayWithId
: (display != null) ? display.getDisplayId() : Display.DEFAULT_DISPLAY;
CompatibilityInfo compatInfo = null;
if (container != null) {