OSDN Git Service

Clamp EditText cursor in the drawable boundaries.
authorSiyamed Sinir <siyamed@google.com>
Tue, 2 Feb 2016 02:30:02 +0000 (18:30 -0800)
committerSiyamed Sinir <siyamed@google.com>
Mon, 8 Feb 2016 22:41:26 +0000 (22:41 +0000)
commit217c0f71df8c8de5bafe6ec5ad007b4a37326682
treee401ac53dc60d4742cab924e991f4b5878d268d7
parent901bbe066762a644ec0790de8b07199f4464bb4f
Clamp EditText cursor in the drawable boundaries.

EditText tried to draw outside of the padding boundaries because of a
cursor positioning issue in RTL. This CL removes that fix and instead
clamps the cursor position if cursor is outside of the clipped view
boundary.

Bug: 23397961
Change-Id: Id5f1fbe2a0f571100c89b21758fbb81b14d5da57
core/java/android/widget/Editor.java
core/java/android/widget/TextView.java
core/tests/coretests/src/android/widget/EditorCursorTest.java [new file with mode: 0644]