OSDN Git Service

Fix selection expansion detection logic.
authorKeisuke Kuroyanagi <ksk@google.com>
Wed, 2 Dec 2015 23:04:57 +0000 (15:04 -0800)
committerKeisuke Kuroyanagi <ksk@google.com>
Wed, 2 Dec 2015 23:04:57 +0000 (15:04 -0800)
commit26454141a8c489d84b7d486ad03869ff0f44dfdc
treef8695dd436f72d183e075353426c1586aee7d006
parent5f71b5afe83ea6a183a9a010c05ce4e1453e264b
Fix selection expansion detection logic.

The logic to detect vertical expansion is inverted on RTL
text. As a result, the selection handle cannot be moved
when it's dragged toward vertically expanding and
horizontally shrinking direction.

Bug: 25893288
Change-Id: I096595d287261b1287862c6ad27ae7f6f0a73262
core/java/android/widget/Editor.java
core/tests/coretests/res/layout/activity_text_view.xml
core/tests/coretests/src/android/widget/TextViewActivityTest.java