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

Commit fe0504b2 authored by Tiger Huang's avatar Tiger Huang Committed by Gerrit Code Review
Browse files

Merge "Fix content insets calculation error when taking task snapshot."

parents bd8fb458 80159d3e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ class TaskSnapshotController {
        }
        final ActivityRecord activity = result.first;
        final WindowState mainWindow = result.second;
        final Rect contentInsets = getSystemBarInsets(task.getBounds(),
        final Rect contentInsets = getSystemBarInsets(mainWindow.getFrame(),
                mainWindow.getInsetsStateWithVisibilityOverride());
        InsetUtils.addInsets(contentInsets, activity.getLetterboxInsets());

@@ -554,7 +554,7 @@ class TaskSnapshotController {
        final LayoutParams attrs = mainWindow.getAttrs();
        final Rect taskBounds = task.getBounds();
        final InsetsState insetsState = mainWindow.getInsetsStateWithVisibilityOverride();
        final Rect systemBarInsets = getSystemBarInsets(taskBounds, insetsState);
        final Rect systemBarInsets = getSystemBarInsets(mainWindow.getFrame(), insetsState);
        final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags,
                attrs.privateFlags, attrs.insetsFlags.appearance, task.getTaskDescription(),
                mHighResTaskSnapshotScale, insetsState);