Skip to content

Commit

Permalink
[PCCT-SideSheet] No shadow margins during minimization
Browse files Browse the repository at this point in the history
(cherry picked from commit 670de7a)

Bug: 1449946, 1434222
Change-Id: I79eaed742cea5f8e274dec50107f726b4201f0c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4569101
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Kevin Grosu <kgrosu@google.com>
Commit-Queue: Zach Katz <katzz@google.com>
Cr-Original-Commit-Position: refs/heads/main@{#1150942}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4579830
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Kevin Grosu <kgrosu@google.com>
Auto-Submit: Zach Katz <katzz@google.com>
Cr-Commit-Position: refs/branch-heads/5790@{#228}
Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
  • Loading branch information
Zach Katz authored and Chromium LUCI CQ committed Jun 1, 2023
1 parent d12efae commit 01be9d1
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -162,9 +162,6 @@ boolean toggleMaximize(boolean animate) {
if (mIsMaximized) {
if (shouldDrawDividerLine()) resetCoordinatorLayoutInsets();
setTopMargins(0, 0);
} else {
if (shouldDrawDividerLine()) drawDividerLine();
updateShadowOffset();
}

AnimatorUpdateListener updateListener;
Expand Down Expand Up @@ -219,6 +216,8 @@ private void onMaximizeEnd() {
maybeResetTalkbackFocus();
}
initializeSize();
if (shouldDrawDividerLine()) drawDividerLine();
updateShadowOffset();
maybeInvokeResizeCallback();
});
}
Expand Down

0 comments on commit 01be9d1

Please sign in to comment.