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
This commit is contained in:
Fabrice Di Meglio
2013-04-09 18:04:29 -07:00
parent 94d6170b67
commit dc25d25333
3 changed files with 13 additions and 10 deletions

View File

@@ -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) {