Smartspace location fix

Use getTop() instead of getY(). The former will give us the diff
between views, which will not include any translated value.

Fixes: 188390632
Test: manual
Change-Id: I1846e5c0d233959951844798521b57a6c7e6cd69
This commit is contained in:
Matt Pietal
2021-06-02 16:17:43 -04:00
parent 0def72662f
commit b9ec4a71ec

View File

@@ -192,7 +192,7 @@ public class KeyguardClockSwitch extends RelativeLayout {
if (indexOfChild(in) == -1) addView(in);
direction = -1;
smartspaceYTranslation = mSmartspaceView == null ? 0
: mClockFrame.getY() - mSmartspaceView.getY();
: mClockFrame.getTop() - mSmartspaceView.getTop();
} else {
in = mClockFrame;
out = mLargeClockFrame;