am 94d225d8: am e08f3b3f: Merge "Resolve CompoundButton\'s foreground drawable for layout direction change" into mnc-dev
* commit '94d225d80be2b76ed7ad0f64946d81ce15845e1f': Resolve CompoundButton's foreground drawable for layout direction change
This commit is contained in:
@@ -244,6 +244,17 @@ public abstract class CompoundButton extends Button implements Checkable {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@Override
|
||||
public void onResolveDrawables(@ResolvedLayoutDir int layoutDirection) {
|
||||
super.onResolveDrawables(layoutDirection);
|
||||
if (mButtonDrawable != null) {
|
||||
mButtonDrawable.setLayoutDirection(layoutDirection);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the drawable used as the compound button image
|
||||
* @see #setButtonDrawable(Drawable)
|
||||
|
||||
Reference in New Issue
Block a user