Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dc69f36 authored by Aran Ink's avatar Aran Ink
Browse files

Correctly prevent the bubble screenshot menu when setting missing.

Fixes: 146437754

Test: Manual. With setting disabled, long-press on bubbles does nothing. With setting enabled (adb shell settings put secure allow_bubble_screenshot_menu 1), long press shows the screenshot menu.
Change-Id: Ic48749b0377e41ed06daf6742a7cc08e64e1db5f
parent 30e1d6bd
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -134,7 +134,8 @@ class BubbleTouchHandler implements View.OnTouchListener {
                if (isStack) {
                if (isStack) {
                    mViewPositionOnTouchDown.set(mStack.getStackPosition());
                    mViewPositionOnTouchDown.set(mStack.getStackPosition());
                    mStack.onDragStart();
                    mStack.onDragStart();
                    if (!mStack.isShowingBubbleMenu() && !mStack.isExpanded()) {
                    if (!mStack.isShowingBubbleMenu() && !mStack.isExpanded()
                            && BubbleExperimentConfig.allowBubbleScreenshotMenu(mContext)) {
                        mShowBubbleMenuRunnable = mStack::showBubbleMenu;
                        mShowBubbleMenuRunnable = mStack::showBubbleMenu;
                        mStack.postDelayed(mShowBubbleMenuRunnable,
                        mStack.postDelayed(mShowBubbleMenuRunnable,
                                ViewConfiguration.getLongPressTimeout());
                                ViewConfiguration.getLongPressTimeout());