Skip to content

Commit

Permalink
Merge pull request eyedol#1 from menny/suntabu-master-path
Browse files Browse the repository at this point in the history
Fixing errors for PR 1128
  • Loading branch information
suntabu authored Sep 30, 2017
2 parents 4ea4f16 + 9043713 commit f2e9291
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Point;
import android.os.SystemClock;
import android.preference.PreferenceManager;
Expand Down Expand Up @@ -232,12 +231,15 @@ public boolean onTouchEvent(@NonNull MotionEvent me) {
return super.onTouchEvent(me);
}

mGestureDrawingHelper.handleTouchEvent(me);

final int action = MotionEventCompat.getActionMasked(me);

PointerTracker pointerTracker = getPointerTracker(me);
mGestureTypingPathShouldBeDrawn = pointerTracker.isInGestureTyping();
if (AnyApplication.getConfig().getGestureTyping()) {
mGestureTypingPathShouldBeDrawn = pointerTracker.isInGestureTyping();
mGestureDrawingHelper.handleTouchEvent(me);
} else {
mGestureTypingPathShouldBeDrawn = false;
}
// Gesture detector must be enabled only when mini-keyboard is not
// on the screen.
if (!mMiniKeyboardPopup.isShowing() && (!mGestureTypingPathShouldBeDrawn) && mGestureDetector != null && mGestureDetector.onTouchEvent(me)) {
Expand Down

0 comments on commit f2e9291

Please sign in to comment.