Merge "Copy insets state for snapshot starting window"
This commit is contained in:
@@ -481,7 +481,7 @@ class TaskSnapshotController {
|
||||
final int color = ColorUtils.setAlphaComponent(
|
||||
task.getTaskDescription().getBackgroundColor(), 255);
|
||||
final LayoutParams attrs = mainWindow.getAttrs();
|
||||
final InsetsState insetsState = mainWindow.getInsetsState();
|
||||
final InsetsState insetsState = new InsetsState(mainWindow.getInsetsState());
|
||||
mergeInsetsSources(insetsState, mainWindow.getRequestedInsetsState());
|
||||
final Rect systemBarInsets = getSystemBarInsets(mainWindow.getFrame(), insetsState);
|
||||
final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags,
|
||||
|
||||
@@ -237,7 +237,7 @@ class TaskSnapshotSurface implements StartingSurface {
|
||||
task.getBounds(taskBounds);
|
||||
currentOrientation = topFullscreenOpaqueWindow.getConfiguration().orientation;
|
||||
activityType = activity.getActivityType();
|
||||
insetsState = topFullscreenOpaqueWindow.getInsetsState();
|
||||
insetsState = new InsetsState(topFullscreenOpaqueWindow.getInsetsState());
|
||||
mergeInsetsSources(insetsState, topFullscreenOpaqueWindow.getRequestedInsetsState());
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user