Merge "Fixed issue with using wrong display id when creating context for displays" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c4643dd80
@@ -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