Set the stash handle bounds deterministically
The bounds of the bubble stash handle is calculated based on the bounds of
the bubble bar. The problem is that the bubble bar could be invisible, which
results in incorrect bounds set for the handle.
This change sets the bounds for the handle based on the width of the screen.
Fixes: 290992144
Test: Manual
- Remove bubbles
- Restart Launcher
- Open the bubble test app and double tap on a chat
- Observe that the handle animates in
Change-Id: Ida260014d59b88387de010891c18057f3b091e93
This commit is contained in:
1 parent
95d84f5e06
commit
f172c0b3b5
2 files changed
+10
-6
No files matched your search
@@ -152,6 +152,11 @@ public class BubbleBarViewController {
|
||||
return mBarView.getBubbleBarBounds();
|
||||
}
|
||||
|
||||
/** The horizontal margin of the bubble bar from the edge of the screen. */
|
||||
public int getHorizontalMargin() {
|
||||
return mBarView.getHorizontalMargin();
|
||||
}
|
||||
|
||||
/**
|
||||
* When the bubble bar is not stashed, it can be collapsed (the icons are in a stack) or
|
||||
* expanded (the icons are in a row). This indicates whether the bubble bar is expanded.
|
||||
|
||||
Reference in new issue
Block a user