Merge "Remove unused setProximityCorrectionEnabled() methods"

main
Tadashi G. Takaoka 2012-07-25 19:54:38 -07:00 committed by Android (Google) Code Review
commit 941f222c21
3 changed files with 0 additions and 27 deletions

View File

@ -25,7 +25,6 @@ public class KeyDetector {
private Keyboard mKeyboard; private Keyboard mKeyboard;
private int mCorrectionX; private int mCorrectionX;
private int mCorrectionY; private int mCorrectionY;
private boolean mProximityCorrectOn;
/** /**
* This class handles key detection. * This class handles key detection.
@ -64,14 +63,6 @@ public class KeyDetector {
return mKeyboard; return mKeyboard;
} }
public void setProximityCorrectionEnabled(boolean enabled) {
mProximityCorrectOn = enabled;
}
public boolean isProximityCorrectionEnabled() {
return mProximityCorrectOn;
}
public boolean alwaysAllowsSlidingInput() { public boolean alwaysAllowsSlidingInput() {
return false; return false;
} }

View File

@ -497,23 +497,6 @@ public class MainKeyboardView extends KeyboardView implements PointerTracker.Key
mHasDistinctMultitouch = hasDistinctMultitouch; mHasDistinctMultitouch = hasDistinctMultitouch;
} }
/**
* When enabled, calls to {@link KeyboardActionListener#onCodeInput} will include key
* codes for adjacent keys. When disabled, only the primary key code will be
* reported.
* @param enabled whether or not the proximity correction is enabled
*/
public void setProximityCorrectionEnabled(boolean enabled) {
mKeyDetector.setProximityCorrectionEnabled(enabled);
}
/**
* Returns true if proximity correction is enabled.
*/
public boolean isProximityCorrectionEnabled() {
return mKeyDetector.isProximityCorrectionEnabled();
}
@Override @Override
protected void onAttachedToWindow() { protected void onAttachedToWindow() {
super.onAttachedToWindow(); super.onAttachedToWindow();

View File

@ -693,7 +693,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
inputView.setKeyPreviewPopupEnabled(mCurrentSettings.mKeyPreviewPopupOn, inputView.setKeyPreviewPopupEnabled(mCurrentSettings.mKeyPreviewPopupOn,
mCurrentSettings.mKeyPreviewPopupDismissDelay); mCurrentSettings.mKeyPreviewPopupDismissDelay);
inputView.setProximityCorrectionEnabled(true);
if (TRACE) Debug.startMethodTracing("/data/trace/latinime"); if (TRACE) Debug.startMethodTracing("/data/trace/latinime");
} }