Handle taps on the animating bubble
Make the animating bubble touchable and expand the bubble bar when tapping on it. Demo: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/c4wBVtrT5YIgxL5kVuuoDU Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT Bug: 280605846 Test: atest BubbleBarViewAnimatorTest Change-Id: I09281c2ebc9921750ada42dfc27e95d1ad0bd83b
This commit is contained in:
1 parent
e79120af38
commit
a87abece5a
6 files changed
+195
-15
No files matched your search
@@ -347,7 +347,7 @@ public class BubbleStashController {
|
||||
hotseatCellHeight - mUnstashedHeight) / 2;
|
||||
}
|
||||
|
||||
float getBubbleBarTranslationY() {
|
||||
public float getBubbleBarTranslationY() {
|
||||
// If we're on home, adjust the translation so the bubble bar aligns with hotseat.
|
||||
// Otherwise we're either showing in an app or in overview. In either case adjust it so
|
||||
// the bubble bar aligns with the taskbar.
|
||||
@@ -374,4 +374,19 @@ public class BubbleStashController {
|
||||
public PhysicsAnimator<View> getStashedHandlePhysicsAnimator() {
|
||||
return mHandleViewController.getPhysicsAnimator();
|
||||
}
|
||||
|
||||
/** Notifies taskbar that it should update its touchable region. */
|
||||
public void updateTaskbarTouchRegion() {
|
||||
mTaskbarInsetsController.onTaskbarOrBubblebarWindowHeightOrInsetsChanged();
|
||||
}
|
||||
|
||||
/** Shows the bubble bar immediately without animation. */
|
||||
public void showBubbleBarImmediate() {
|
||||
mHandleViewController.setTranslationYForSwipe(0);
|
||||
mIconTranslationYForStash.updateValue(getBubbleBarTranslationY());
|
||||
mIconAlphaForStash.setValue(1);
|
||||
mIconScaleForStash.updateValue(1);
|
||||
mIsStashed = false;
|
||||
onIsStashedChanged();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user