OSDN Git Service

Enrich JavaDoc for IC#deleteSurroundingText().
authorYohei Yukawa <yukawa@google.com>
Wed, 6 Jan 2016 23:57:27 +0000 (15:57 -0800)
committerYohei Yukawa <yukawa@google.com>
Thu, 7 Jan 2016 08:09:34 +0000 (08:09 +0000)
commit5f137933d130e8e5f9d0d2285f6799e459befb5a
treeb1a5756753749796d2f25a6bb3a07516912cf496
parente8ff81c1b19a596fec2aaeaff418ae7c228634ba
Enrich JavaDoc for IC#deleteSurroundingText().

As a preparation work for Bug 6526420, where we are going to
introduce a new variant of IC#deleteSurroundingText(), this CL attempts
to clarify about the expected behavior of IC#deleteSurroundingText().

With this CL, the expected behavior when the number of existing
characters is smaller than the number of characters to be deleted is
now documented by simply describing the current behavior of
BaseInputConnection, that is, IC#deleteSurroundingText() will delete
characters until it deletes requested number of characters in code units
or reaches to an end.

This is purely documentation work.  No behavior change is intended.

Bug: 6526420
Change-Id: I7280dec07e1c043bd26b3b12fd866b9d8b6186cc
core/java/android/view/inputmethod/BaseInputConnection.java
core/java/android/view/inputmethod/InputConnection.java