OSDN Git Service

setTransformationMethod should reset mTextDir
authorSiyamed Sinir <siyamed@google.com>
Fri, 20 May 2016 01:26:09 +0000 (18:26 -0700)
committerSiyamed Sinir <siyamed@google.com>
Fri, 20 May 2016 01:30:38 +0000 (18:30 -0700)
commitd55be2b9d5870c87a3719e6f6fab8a605c3f16e9
tree8fcfd4805a594b984c048f545d04af72c650f0a5
parentff8ceadfc8c5f03da57420ad93a698cb0a57fcd9
setTransformationMethod should reset mTextDir

When transformation method is set via API, text direction heuristics has
to be reset since for PasswordTransformationMethod it is set to LTR. Not
resetting it causes inconsistencies with the remaining of the TextView.

Bug: 28562779
Change-Id: I225e35e39bde60d4296852ff17b107d5b7b99f8a
core/java/android/widget/TextView.java