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

Commit 7e215d76 authored by Andrii Kulian's avatar Andrii Kulian
Browse files

Report correct display id in stack info

Bug: 37101202
Test: adb shell am stack list
Change-Id: I16ace089f8bae5ec1090b27e9d9a59657e9496dd
parent 105f55ee
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3944,10 +3944,11 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
    }

    private StackInfo getStackInfoLocked(ActivityStack stack) {
        final ActivityDisplay display = mActivityDisplays.get(DEFAULT_DISPLAY);
        final int displayId = stack.mDisplayId;
        final ActivityDisplay display = mActivityDisplays.get(displayId);
        StackInfo info = new StackInfo();
        stack.getWindowContainerBounds(info.bounds);
        info.displayId = DEFAULT_DISPLAY;
        info.displayId = displayId;
        info.stackId = stack.mStackId;
        info.userId = stack.mCurrentUser;
        info.visible = stack.shouldBeVisible(null) == STACK_VISIBLE;