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

Commit df611cf1 authored by Mady Mellor's avatar Mady Mellor
Browse files

Make sure the ime height is set to 0 when the ime disappears

Previously we were setting the offset always which means the bubble
position wasn't quite where it should be.

Test: manual - have stack of bubbles, note how far to bottom of screen
               the stack can be placed
             - expand them
             - focus the keyboard
             - collapse the stack
             => note how far to bottom of screen the stack can be placed,
                should be same as step 1

Change-Id: I0e3d788a2edcd42b56ce8ee4e350be3ddf89183e
parent c76d88b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -991,7 +991,7 @@ public class BubbleStackView extends FrameLayout {

    /** Moves the bubbles out of the way if they're going to be over the keyboard. */
    public void onImeVisibilityChanged(boolean visible, int height) {
        mStackAnimationController.setImeHeight(height + mImeOffset);
        mStackAnimationController.setImeHeight(visible ? height + mImeOffset : 0);

        if (!mIsExpanded) {
            mStackAnimationController.animateForImeVisibility(visible);