Renamed setGestureType in GestureLibrary
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user