OSDN Git Service

Resolve CompoundButton's foreground drawable for layout direction change
authorDoris Liu <tianliu@google.com>
Tue, 30 Jun 2015 18:26:47 +0000 (11:26 -0700)
committerDoris Liu <tianliu@google.com>
Tue, 30 Jun 2015 18:26:47 +0000 (11:26 -0700)
commit3380e69f5529972ff03b545353d5f1c5e2abc1b1
treefe0153fa7b29954661ced7b1e3a06c728c42c38e
parent728b7500b3d34cd89f7aff0bad1bb7fe3e097f11
Resolve CompoundButton's foreground drawable for layout direction change

This CL adds a step to resolve CompoundButton's foreground drawable when
layout direction has been changed. Prior this CL, only background drawable
of the button resolves its layout direciton in respond to system wide
layout direction change. This CL makes the foreground and background
drawables consistent in layout direciton.

Bug: 16376848
Change-Id: I9a4eb1e010e6ab61ef8684005508bd36486ec1f3
core/java/android/widget/CompoundButton.java