Bug 821979 - Specify valid selection offsets in onCreateInputConnection; r=blassey

This commit is contained in:
Jim Chen 2012-12-26 10:06:53 -05:00
parent e3b7925c5e
commit 0532328ecc

View File

@ -360,9 +360,9 @@ class GeckoInputConnection
}
}
// We don't know the selection
outAttrs.initialSelStart = -1;
outAttrs.initialSelEnd = -1;
Editable editable = getEditable();
outAttrs.initialSelStart = Selection.getSelectionStart(editable);
outAttrs.initialSelEnd = Selection.getSelectionEnd(editable);
return this;
}