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

Commit cd9ab844 authored by tanxiaoyan's avatar tanxiaoyan
Browse files

Do not set window crop of task until display is enabled



Bug:353464254

Change-Id: I1af34744d8f8d26fc8d839eefc6c278f9ca36644
Signed-off-by: default avatartanxiaoyan <tanxiaoyan@xiaomi.com>
parent 993bad4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2291,7 +2291,7 @@ class Task extends TaskFragment {
        // Apply crop to root tasks only and clear the crops of the descendant tasks.
        int width = 0;
        int height = 0;
        if (isRootTask()) {
        if (isRootTask() && !mTransitionController.mIsWaitingForDisplayEnabled) {
            final Rect taskBounds = getBounds();
            width = taskBounds.width();
            height = taskBounds.height();