Add nullcheck for VelocityTracker
Bug:134712476
Change-Id:I7834507a4e9aadf4d89c0ed6f3eba812df7425cd
(cherry picked from commit 6ef5b8abf4
)
This commit is contained in:
parent
c449a6417d
commit
0063204dbf
|
@ -106,6 +106,7 @@ public class FlingToDeleteHelper {
|
|||
* @return the vector at which the item was flung, or null if no fling was detected.
|
||||
*/
|
||||
private PointF isFlingingToDelete() {
|
||||
if (mVelocityTracker == null) return null;
|
||||
if (mDropTarget == null) {
|
||||
mDropTarget = (ButtonDropTarget) mLauncher.findViewById(R.id.delete_target_text);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue