summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Li <liyang@google.com>2009-05-21 16:08:35 -0700
committerYang Li <liyang@google.com>2009-05-21 16:08:35 -0700
commitac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4 (patch)
treec93b7f1bcbb9c7248ee7a3e78e4cbcc7b845f9a5
parentb6d99b7d17fd1bb1326a70744bd01be5d1586487 (diff)
downloadframeworks_base-ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4.zip
frameworks_base-ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4.tar.gz
frameworks_base-ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4.tar.bz2
Renamed setGestureType in GestureLibrary
-rw-r--r--tests/sketch/src/com/android/gesture/GestureLibrary.java10
-rw-r--r--tests/sketch/src/com/android/gesture/LetterRecognizer.java2
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;