Scale bubble bar to the width of the handle

When animating bubble bar from the stash handle, scale the width to the
handle.
Bubble bar is already almost the size of the handle, but a small scale
is still added.

Bug: 345488489
Flag: com.android.wm.shell.enable_bubble_bar
Test: atest TransientBubbleStashControllerTest
Test: slow animations down and unstash and stash bubble bar, observe
  that the width of the bubble bar scales down to the handle
Change-Id: I54dc228fa41d4d494bfb15e191d2ba563c0970c7
This commit is contained in:
Ats Jenk
2024-08-30 10:11:27 -07:00
parent 9ab2b8c785
commit da9e36e4e7
5 changed files with 77 additions and 26 deletions
@@ -172,6 +172,13 @@ public class BubbleStashedHandleViewController {
mRegionSamplingHelper = null;
}
/**
* Returns the width of the stashed handle.
*/
public int getStashedWidth() {
return mStashedHandleWidth;
}
/**
* Returns the height of the stashed handle.
*/