am ac6a4b8e: Renamed setGestureType in GestureLibrary

Merge commit 'ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4'

* commit 'ac6a4b8eab8311a02e1988c1dbd1c85f867b6bc4':
  Renamed setGestureType in GestureLibrary
This commit is contained in:
Yang Li
2009-05-21 16:18:46 -07:00
committed by The Android Open Source Project
2 changed files with 9 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;