OSDN Git Service

Revert partial RTL'ization of Editor.setError()
authorRaph Levien <raph@google.com>
Fri, 2 Nov 2012 03:05:24 +0000 (20:05 -0700)
committerRaph Levien <raph@google.com>
Fri, 2 Nov 2012 03:15:53 +0000 (20:15 -0700)
commitf58f1b9d41a5cfc2614b836417b7fee7e6d241b6
tree520bfbc0e0e24b4d066ad1167c03aee2641011ff
parentf64e70fd045c2a786e3d3edf880d806e93beec3b
Revert partial RTL'ization of Editor.setError()

The conversion of the error indication on Editor to RTL-aware was only
partially completed, and was causing bugs such as an error indication
failing to appear when set (bug 7457897).

This patch reverts these changes and just always sets the error drawable
on the right. This fixes the above bug, and also makes the error
drawable position always consistent with the error popup (before, in an
RTL layout direction, the popup would be on the right and the drawable
on the left).

Making the error display fully RTL-aware should be done as future work.

Change-Id: Icaee91210454ed9056e7200520d9275303de02ca
core/java/android/widget/Editor.java