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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user