From ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4 Mon Sep 17 00:00:00 2001 From: Yang Li Date: Thu, 21 May 2009 16:08:35 -0700 Subject: Renamed setGestureType in GestureLibrary --- tests/sketch/src/com/android/gesture/GestureLibrary.java | 10 ++++++++-- tests/sketch/src/com/android/gesture/LetterRecognizer.java | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/sketch/src/com/android/gesture/GestureLibrary.java b/tests/sketch/src/com/android/gesture/GestureLibrary.java index eba6069..7b5480c 100644 --- a/tests/sketch/src/com/android/gesture/GestureLibrary.java +++ b/tests/sketch/src/com/android/gesture/GestureLibrary.java @@ -106,11 +106,17 @@ public class GestureLibrary { return mOrientationStyle; } - public void setGestureType(int type) { + /** + * @param type SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE + */ + public void setSequenceType(int type) { mSequenceType = type; } - public int getGestureType() { + /** + * @return SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE + */ + public int getSequenceType() { return mSequenceType; } diff --git a/tests/sketch/src/com/android/gesture/LetterRecognizer.java b/tests/sketch/src/com/android/gesture/LetterRecognizer.java index 981c416..07a5f31 100644 --- a/tests/sketch/src/com/android/gesture/LetterRecognizer.java +++ b/tests/sketch/src/com/android/gesture/LetterRecognizer.java @@ -197,7 +197,7 @@ public class LetterRecognizer { public void enablePersonalization(boolean enable) { if (enable) { mGestureLibrary = new GestureLibrary(GESTURE_FILE_NAME); - mGestureLibrary.setGestureType(GestureLibrary.SEQUENCE_INVARIANT); + mGestureLibrary.setSequenceType(GestureLibrary.SEQUENCE_INVARIANT); mGestureLibrary.load(); } else { mGestureLibrary = null; -- cgit v1.1