Revert "Use floating-point value for Drawable level"

This reverts commit 3da32b7688.

Change-Id: Ie75ce0c285e0f59a7a086f64c0cfe088edb5df04
This commit is contained in:
Alan Viverette
2015-09-14 16:59:49 +00:00
parent 3da32b7688
commit 0b6cfe22fd
12 changed files with 65 additions and 175 deletions

View File

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