Revert "Use floating-point value for Drawable level"
This reverts commit 3da32b7688.
Change-Id: Ie75ce0c285e0f59a7a086f64c0cfe088edb5df04
This commit is contained in:
@@ -322,7 +322,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean onLevelChange(float level) {
|
||||
protected boolean onLevelChange(int level) {
|
||||
if (mLastDrawable != null) {
|
||||
return mLastDrawable.setLevel(level);
|
||||
}
|
||||
@@ -510,7 +510,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
|
||||
d.setVisible(isVisible(), true);
|
||||
d.setDither(mDrawableContainerState.mDither);
|
||||
d.setState(getState());
|
||||
d.setLevel(getLevelFloat());
|
||||
d.setLevel(getLevel());
|
||||
d.setBounds(getBounds());
|
||||
d.setLayoutDirection(getLayoutDirection());
|
||||
d.setAutoMirrored(mDrawableContainerState.mAutoMirrored);
|
||||
|
||||
Reference in New Issue
Block a user