Rename method to set bubble bar expanded state [1/N]

Rename methods in BubbleBarViewController and BubbleBarView that set the
expanded state.
These will update the state using an animation.
Update the name to highlight this.
Enables us to create methods to set the state without animation.

Bug: 357115534
Test: refactor, presubmit
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I9d2c46ab1640ab0b19f54103ab8cdb37a5d19dbb
This commit is contained in:
Ats Jenk committed 2025-04-25 10:20:41 -07:00
1 parent 4753b6e83e
commit 416f80dc82
9 files changed
+28 -28

No files matched your search

@@ -1309,9 +1309,9 @@ public class BubbleBarView extends FrameLayout {
}
/**
* Sets whether the bubble bar is expanded or collapsed.
* Update bubble bar expanded state with animation.
*/
public void setExpanded(boolean isBarExpanded) {
public void animateExpanded(boolean isBarExpanded) {
if (mIsBarExpanded != isBarExpanded) {
mIsBarExpanded = isBarExpanded;
updateArrowForSelected(/* shouldAnimate= */ false);