Fixed issue with using wrong display id when creating context for displays
Bug: 21729214 Change-Id: I58b6712e2929e758c3fc3b2d493991ba0262dec9
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user