Skip to content

Commit

Permalink
Merge "Take fixed rotation into account when setting the rounded corn…
Browse files Browse the repository at this point in the history
…er frame" into main
  • Loading branch information
Tiger Huang authored and Android (Google) Code Review committed Jun 13, 2024
2 parents feed17b + 1223a7a commit 2b683b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/core/java/com/android/server/wm/InsetsPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ private InsetsState adjustInsetsForRoundedCorners(WindowToken token, InsetsState
// Use task bounds to calculating rounded corners if the task is not floating.
final InsetsState state = copyState ? new InsetsState(originalState)
: originalState;
state.setRoundedCornerFrame(task.getBounds());
state.setRoundedCornerFrame(token.isFixedRotationTransforming()
? token.getFixedRotationTransformDisplayBounds()
: task.getBounds());
return state;
}
}
Expand Down

0 comments on commit 2b683b7

Please sign in to comment.