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

Commit 880695a3 authored by Ajinkya Chalke's avatar Ajinkya Chalke
Browse files

Set appBounds when creating Task from TaskInfo

- Task.appBounds are used by Alt+Tab KQS view to show thumbnails as per
  app's actual bounds.

Flag: EXEMPT setting a new property that is accessed behind a flag
Test: m
Fix: 415287151
Change-Id: I051089feb6bfbe8297f7e4cf42f94388757f0298
parent aacd8b5d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -303,10 +303,12 @@ public class Task {
                        CONTROLLED_WINDOWING_MODES_WHEN_ACTIVE, taskInfo.getWindowingMode())
                && (taskInfo.getActivityType() == ACTIVITY_TYPE_UNDEFINED
                || ArrayUtils.contains(CONTROLLED_ACTIVITY_TYPES, taskInfo.getActivityType()));
        return new Task(taskKey,
        Task result = new Task(taskKey,
                td != null ? td.getPrimaryColor() : 0,
                td != null ? td.getBackgroundColor() : 0, isDockable , isLocked, td,
                taskInfo.topActivity);
        result.appBounds = taskInfo.configuration.windowConfiguration.getAppBounds();
        return result;
    }

    /**