Merge "Hide the stack education view when user taps" into sc-dev am: cdfc535609

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14753038

Change-Id: I6bb25986c9a5b22bb8674e97cc63c3a36a3e8127
This commit is contained in:
Mady Mellor
2021-06-01 19:42:24 +00:00
committed by Automerger Merge Worker

View File

@@ -938,6 +938,8 @@ public class BubbleStackView extends FrameLayout
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
if (mShowingManage) {
showManageMenu(false /* show */);
} else if (mStackEduView != null && mStackEduView.getVisibility() == VISIBLE) {
mStackEduView.hide(false);
} else if (mBubbleData.isExpanded()) {
mBubbleData.setExpanded(false);
}
@@ -1152,6 +1154,7 @@ public class BubbleStackView extends FrameLayout
mStackEduView = new StackEducationView(mContext);
addView(mStackEduView);
}
mBubbleContainer.bringToFront();
return mStackEduView.show(mPositioner.getDefaultStartPosition());
}