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

Commit e1e5df58 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by The Android Open Source Project
Browse files

Automated import from //branches/master/...@141151,141151

parent 6025a97a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -471,6 +471,7 @@ public class EditStyledText extends EditText {
            if (DBG) {
                Log.d(LOG_TAG, "--- onStartEdit");
            }
            Log.d(LOG_TAG, "--- onstartedit:" + this.getSelectionStart() + this.getSelectionEnd());
            handleResetEdit();
            mEST.notifyStateChanged(mMode, mState);
        }
@@ -855,6 +856,7 @@ public class EditStyledText extends EditText {
            if (DBG) {
                Log.d(LOG_TAG, "Reset Editor");
            }
            blockSoftKey();
            handleCancel();
            mEditFlag = true;
            mEST.setHintMessage(HINT_MSG_SELECT_START);
@@ -967,8 +969,7 @@ public class EditStyledText extends EditText {
            }
            int pos = current;
            for (; pos > 0; pos--) {
                if (text.charAt(pos) == '\n') {
                    pos++;
                if (text.charAt(pos - 1) == '\n') {
                    break;
                }
            }
@@ -982,7 +983,7 @@ public class EditStyledText extends EditText {
            }
            int pos = current;
            for (; pos < text.length(); pos++) {
                if (text.charAt(pos) == '\n') {
                if (pos > 0 && text.charAt(pos - 1) == '\n') {
                    break;
                }
            }