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

Commit 914243ab authored by Anthony Hugh's avatar Anthony Hugh
Browse files

Button bar animating when it isn't supposed to

There was an incorrect calculation for determining when
the content was occluded by the button bar or not.

BUG: 25164689
Change-Id: I121f6e0232da2d1536e0fbbf697e00a4f9c1841f
parent ae613967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ public abstract class ConfirmationViewHandler implements

        // Only hide the button bar if it is occluding the content or the button bar is bigger than
        // half the screen
        if (contentHeight > halfScreenHeight
        if (contentHeight > (screenHeight - buttonBarHeight)
                || buttonBarHeight > halfScreenHeight) {
            mHideHandler.sendEmptyMessageDelayed(MSG_HIDE_BUTTON_BAR, 3000);
        }