mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Switch to new protocol for hybrid hotseat
- create predictor from items in bgModel instead of scanning views - Launcher no longer checks for duplicates before sending pin/unpin events - sending cached items from last prediction to reduce UI shuffle - Switch to using UserCache to persist and read ComponentKey Bug: 148814143 Bug: 156413231 Bug: 156200931 Change-Id: Ide6330bed8eb7f0c6fbec1d1ac21e7f67a9b2be2
This commit is contained in:
@@ -110,6 +110,18 @@ public interface DropTarget {
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is used to determine if an object is dropped at a different location than it was
|
||||
* dragged from
|
||||
*/
|
||||
public boolean isMoved() {
|
||||
return dragInfo.cellX != originalDragInfo.cellX
|
||||
|| dragInfo.cellY != originalDragInfo.cellY
|
||||
|| dragInfo.screenId != originalDragInfo.screenId
|
||||
|| dragInfo.container != originalDragInfo.container;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user