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

Commit 027929d2 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix IME hanging around

This wasn't being called on the previous bubble which
I think is the issue

Test: manual - have IME up & switch between a bunch of bubbles focusing/
      unfocusing IME over and over again
Fixes: 158674256
Change-Id: I7939a943621712f0d3f1fca5f66766c6b82b3ec6
parent 5c716782
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1517,6 +1517,12 @@ public class BubbleStackView extends FrameLayout
                if (previouslySelected != null) {
                    previouslySelected.setContentVisibility(false);
                }
                if (previouslySelected != null && previouslySelected.getExpandedView() != null) {
                    // Hide the currently expanded bubble's IME if it's visible before switching
                    // to a new bubble.
                    previouslySelected.getExpandedView().hideImeIfVisible();
                }

                updateExpandedBubble();
                requestUpdate();

@@ -2430,8 +2436,6 @@ public class BubbleStackView extends FrameLayout
            Log.d(TAG, "updateExpandedBubble()");
        }

        hideImeFromExpandedBubble();

        mExpandedViewContainer.removeAllViews();
        if (mIsExpanded && mExpandedBubble != null
                && mExpandedBubble.getExpandedView() != null) {