Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cac3dc63 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Fixed issue with using wrong display id when creating context for displays

Bug: 21729214
Change-Id: I58b6712e2929e758c3fc3b2d493991ba0262dec9
parent 6f024937
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1745,7 +1745,8 @@ class ContextImpl extends Context {
        mResourcesManager = ResourcesManager.getInstance();
        mResourcesManager = ResourcesManager.getInstance();


        final int displayId = (createDisplayWithId != Display.INVALID_DISPLAY)
        final int displayId = (createDisplayWithId != Display.INVALID_DISPLAY)
                ? createDisplayWithId : getDisplayId();
                ? createDisplayWithId
                : (display != null) ? display.getDisplayId() : Display.DEFAULT_DISPLAY;


        CompatibilityInfo compatInfo = null;
        CompatibilityInfo compatInfo = null;
        if (container != null) {
        if (container != null) {