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

Commit bc8b9324 authored by Liran Binyamin's avatar Liran Binyamin
Browse files

Hide IME only after bubble drag started

We currently hide the IME in the onDown of the touch gesture. If we're
just tapping to switch bubbles, hiding the IME interferes with the
switch animation. This change hides the IME when a move gesture starts.

Demo: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/dJXt0FwoLKV8aEuMGd5dJe

Flag: EXEMPT bugfix
Fix: 384838831
Test: manual
      - Have 2 floating bubbles
      - Expand and show IME
      - Switch to the other bubble
Change-Id: Iea5a7087e9604b18386c6c292d9af84a90f0301e
parent 0722b663
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -633,8 +633,6 @@ public class BubbleStackView extends FrameLayout
                        mMagneticTarget,
                        mIndividualBubbleMagnetListener);

                hideCurrentInputMethod();

                // Save the magnetized individual bubble so we can dispatch touch events to it.
                mMagnetizedObject = mExpandedAnimationController.getMagnetizedBubbleDraggingOut();
            } else {
@@ -671,6 +669,10 @@ public class BubbleStackView extends FrameLayout
                return;
            }

            if (mPositioner.isImeVisible()) {
                hideCurrentInputMethod();
            }

            // Show the dismiss target, if we haven't already.
            mDismissView.show();