Fix rugged gesture trail

Bug: 12222472
Change-Id: Id615556766718a8bd4848f7026833fbcea540c39
This commit is contained in:
Tadashi G. Takaoka 2013-12-20 14:36:23 +09:00
parent ce9c7d7511
commit 6e97efef78
3 changed files with 2 additions and 5 deletions

View file

@ -355,9 +355,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
ResourceUtils.getDeviceOverrideValue(
res, R.array.phantom_sudden_move_event_device_list));
sNeedsProximateBogusDownMoveUpEventHack = needsProximateBogusDownMoveUpEventHack(res);
sGestureStrokeParams = GestureStrokeParams.DEFAULT;
sGesturePreviewParams = GestureStrokePreviewParams.DEFAULT;
sTimeRecorder = new TimeRecorder(sParams, sGestureStrokeParams);
sTimerProxy = timerProxy;
sDrawingProxy = drawingProxy;

View file

@ -84,7 +84,7 @@ public class GestureStroke {
public final float mRecognitionSpeedThreshold; // keyWidth/sec
// Default GestureStroke parameters.
public static final GestureStrokeParams DEFAULT = new GestureStrokeParams();
private static final GestureStrokeParams DEFAULT = new GestureStrokeParams();
private GestureStrokeParams() {
// These parameter values are default and intended for testing.

View file

@ -45,7 +45,7 @@ public final class GestureStrokeWithPreviewPoints extends GestureStroke {
public final double mMaxInterpolationDistanceThreshold; // in pixel
public final int mMaxInterpolationSegments;
public static final GestureStrokePreviewParams DEFAULT = new GestureStrokePreviewParams();
private static final GestureStrokePreviewParams DEFAULT = new GestureStrokePreviewParams();
private static final int DEFAULT_MAX_INTERPOLATION_ANGULAR_THRESHOLD = 15; // in degree