Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb9f6242 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Use a bit more descriptive name for a parameter

The current parameter name "index" in
CursorAnchorInfo.Builder#setComposingText is a bit hard
to understand.

This CL names it with "composingTextStart" to clarify its usage.

Change-Id: I504939b8d2b48875d8baa9630b5a4f04a5d66dbe
parent 4d8c1326
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -257,11 +257,12 @@ public final class CursorAnchorInfo implements Parcelable {
        /**
         * Sets the text range of the composing text. Calling this can be skipped if there is
         * no composing text.
         * @param index index where the composing text starts.
         * @param composingTextStart index where the composing text starts.
         * @param composingText the entire composing text.
         */
        public Builder setComposingText(final int index, final CharSequence composingText) {
            mComposingTextStart = index;
        public Builder setComposingText(final int composingTextStart,
            final CharSequence composingText) {
            mComposingTextStart = composingTextStart;
            if (composingText == null) {
                mComposingText = null;
            } else {