Merge "Use task bounds when drawing app theme snapshot" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1d4391580e
@@ -379,8 +379,8 @@ class TaskSnapshotController {
|
|||||||
final LayoutParams attrs = mainWindow.getAttrs();
|
final LayoutParams attrs = mainWindow.getAttrs();
|
||||||
final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags,
|
final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags,
|
||||||
attrs.privateFlags, attrs.systemUiVisibility, task.getTaskDescription());
|
attrs.privateFlags, attrs.systemUiVisibility, task.getTaskDescription());
|
||||||
final int width = mainWindow.getFrameLw().width();
|
final int width = task.getBounds().width();
|
||||||
final int height = mainWindow.getFrameLw().height();
|
final int height = task.getBounds().height();
|
||||||
|
|
||||||
final RenderNode node = RenderNode.create("TaskSnapshotController", null);
|
final RenderNode node = RenderNode.create("TaskSnapshotController", null);
|
||||||
node.setLeftTopRightBottom(0, 0, width, height);
|
node.setLeftTopRightBottom(0, 0, width, height);
|
||||||
@@ -398,7 +398,7 @@ class TaskSnapshotController {
|
|||||||
// color above
|
// color above
|
||||||
return new TaskSnapshot(topChild.mActivityComponent, hwBitmap.createGraphicBufferHandle(),
|
return new TaskSnapshot(topChild.mActivityComponent, hwBitmap.createGraphicBufferHandle(),
|
||||||
hwBitmap.getColorSpace(), topChild.getConfiguration().orientation,
|
hwBitmap.getColorSpace(), topChild.getConfiguration().orientation,
|
||||||
mainWindow.getStableInsets(), ActivityManager.isLowRamDeviceStatic() /* reduced */,
|
getInsets(mainWindow), ActivityManager.isLowRamDeviceStatic() /* reduced */,
|
||||||
1.0f /* scale */, false /* isRealSnapshot */, task.getWindowingMode(),
|
1.0f /* scale */, false /* isRealSnapshot */, task.getWindowingMode(),
|
||||||
getSystemUiVisibility(task), false);
|
getSystemUiVisibility(task), false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user