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

Commit 79e59e46 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Use task bounds when drawing app theme snapshot" into qt-dev am: 1d439158 am: e87d91d3

am: 94d2184f

Change-Id: Ib901e93e8a9f8596ca2e5ad564eda51b3ec7deda
parents 22dd194d 94d2184f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -379,8 +379,8 @@ class TaskSnapshotController {
        final LayoutParams attrs = mainWindow.getAttrs();
        final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags,
                attrs.privateFlags, attrs.systemUiVisibility, task.getTaskDescription());
        final int width = mainWindow.getFrameLw().width();
        final int height = mainWindow.getFrameLw().height();
        final int width = task.getBounds().width();
        final int height = task.getBounds().height();

        final RenderNode node = RenderNode.create("TaskSnapshotController", null);
        node.setLeftTopRightBottom(0, 0, width, height);
@@ -398,7 +398,7 @@ class TaskSnapshotController {
        // color above
        return new TaskSnapshot(topChild.mActivityComponent, hwBitmap.createGraphicBufferHandle(),
                hwBitmap.getColorSpace(), topChild.getConfiguration().orientation,
                mainWindow.getStableInsets(), ActivityManager.isLowRamDeviceStatic() /* reduced */,
                getInsets(mainWindow), ActivityManager.isLowRamDeviceStatic() /* reduced */,
                1.0f /* scale */, false /* isRealSnapshot */, task.getWindowingMode(),
                getSystemUiVisibility(task), false);
    }