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
diff --git a/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java b/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
index 954d7e9..1c55e1b 100644
--- a/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
+++ b/src/com/android/packageinstaller/permission/ui/wear/ConfirmationViewHandler.java
@@ -279,7 +279,7 @@
 
         // 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);
         }