OSDN Git Service

Fix RTL issue of ImageFloatingTextView
authordongwan0605.kim <dongwan0605.kim@lge.com>
Fri, 16 Sep 2016 07:26:57 +0000 (16:26 +0900)
committerSelim Cinek <cinek@google.com>
Fri, 23 Sep 2016 20:07:22 +0000 (13:07 -0700)
commitdd8611fc5a374220b3c2b07814dd072d3fe73cca
tree129648b0b6e71409b042f7e9ec712e25634a78bf
parentae9fa16bd01c07a159a4bd17c16b97d3d94a534e
Fix RTL issue of ImageFloatingTextView

Sometimes, makeSingleLayout() can be invoked before layout direction is resolved.
When not resolved, it indents in LTR layout although it should be RTL.

So, to guarantee the exact indenting, we should re-build the text layout
when the layout direction is changed.

Test: manual - Test BigTextStyle notifications with LargeIcon under RTL configurations.
Fixes: 31633875
Change-Id: Idc6c5d7d41632cb9e1b70d9c67c13852e3f25023
core/java/com/android/internal/widget/ImageFloatingTextView.java