summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-04-09 18:04:29 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2013-04-11 13:38:57 -0700
commitdc25d25333d3fac96dccfb9bd31d2474d6bc2d78 (patch)
treee0b30286b2622b51482770d2a3b7fec11208c7bc /graphics/java
parent94d6170b67bcfb5dc5a0c988752d34e64a5f5272 (diff)
downloadframeworks_base-dc25d25333d3fac96dccfb9bd31d2474d6bc2d78.zip
frameworks_base-dc25d25333d3fac96dccfb9bd31d2474d6bc2d78.tar.gz
frameworks_base-dc25d25333d3fac96dccfb9bd31d2474d6bc2d78.tar.bz2
More fix for bug #8159072 Spinner widget should be RTL'ized
- fix DrawableContainerState.getChangingConfigurations() to take care about its children - make Resources.verifyPreloadConfig() return false when the changing configuration contains layout direction bits (this is when a Drawable is having different version for LTR and RTL layout directions) - use constant state instead of the resource type value for checking if we can preload the drawable - fix typo Change-Id: Idd64caf0fbe0f5cfd5ffe09343e84bafa9446ea5
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/drawable/DrawableContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/DrawableContainer.java b/graphics/java/android/graphics/drawable/DrawableContainer.java
index a0c9701..8a4d598 100644
--- a/graphics/java/android/graphics/drawable/DrawableContainer.java
+++ b/graphics/java/android/graphics/drawable/DrawableContainer.java
@@ -512,7 +512,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
@Override
public int getChangingConfigurations() {
- return mChangingConfigurations;
+ return mChangingConfigurations | mChildrenChangingConfigurations;
}
public final int addChild(Drawable dr) {