Merge "Hide the stack education view when user taps" into sc-dev am: cdfc535609 am: 938929c329
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14753038 Change-Id: I2ebefd6af194cdada9536d41871fd7c9555f103c
This commit is contained in:
@@ -938,6 +938,8 @@ public class BubbleStackView extends FrameLayout
|
|||||||
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
||||||
if (mShowingManage) {
|
if (mShowingManage) {
|
||||||
showManageMenu(false /* show */);
|
showManageMenu(false /* show */);
|
||||||
|
} else if (mStackEduView != null && mStackEduView.getVisibility() == VISIBLE) {
|
||||||
|
mStackEduView.hide(false);
|
||||||
} else if (mBubbleData.isExpanded()) {
|
} else if (mBubbleData.isExpanded()) {
|
||||||
mBubbleData.setExpanded(false);
|
mBubbleData.setExpanded(false);
|
||||||
}
|
}
|
||||||
@@ -1152,6 +1154,7 @@ public class BubbleStackView extends FrameLayout
|
|||||||
mStackEduView = new StackEducationView(mContext);
|
mStackEduView = new StackEducationView(mContext);
|
||||||
addView(mStackEduView);
|
addView(mStackEduView);
|
||||||
}
|
}
|
||||||
|
mBubbleContainer.bringToFront();
|
||||||
return mStackEduView.show(mPositioner.getDefaultStartPosition());
|
return mStackEduView.show(mPositioner.getDefaultStartPosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user