Merge "Add finals"

This commit is contained in:
Jean Chalard 2012-02-08 19:08:09 -08:00 committed by Android (Google) Code Review
commit accd2a9f61

View file

@ -2118,8 +2118,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
} }
// "ic" must not be null // "ic" must not be null
private static boolean sameAsTextBeforeCursor(final InputConnection ic, CharSequence text) { private static boolean sameAsTextBeforeCursor(final InputConnection ic,
CharSequence beforeText = ic.getTextBeforeCursor(text.length(), 0); final CharSequence text) {
final CharSequence beforeText = ic.getTextBeforeCursor(text.length(), 0);
return TextUtils.equals(text, beforeText); return TextUtils.equals(text, beforeText);
} }