mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fix 3482911: NPE in CustomizePagedView.resetCheckedItem
Also fixes an issue where quick swipes on an item could cause it to animate in from (0, 0) sometimes. Change-Id: Ie3312389bcb5109f4b26ec518a29b4aa88161377
This commit is contained in:
@@ -245,5 +245,13 @@ public class DragView extends View {
|
||||
void remove() {
|
||||
mWindowManager.removeView(this);
|
||||
}
|
||||
|
||||
int[] getPosition(int[] result) {
|
||||
WindowManager.LayoutParams lp = mLayoutParams;
|
||||
if (result == null) result = new int[2];
|
||||
result[0] = lp.x;
|
||||
result[1] = lp.y;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user