Skip to content

Commit

Permalink
Remove ColorUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
musenkishi committed Jun 11, 2015
1 parent 2309a9c commit cc3c480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 69 deletions.
4 changes: 2 additions & 2 deletions lib/src/main/java/com/musenkishi/atelier/Atelier.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static void applyColorToView(final FloatingActionButton floatingActionBu
.setColorFilter(color, PorterDuff.Mode.MULTIPLY);
}
} else {
ColorStateList colorStateList = ColorUtils.generateColorStateList(color);
ColorStateList colorStateList = ColorStateList.valueOf(color);
floatingActionButton.setBackgroundTintList(colorStateList);
}
} else {
Expand Down Expand Up @@ -265,7 +265,7 @@ public void onAnimationUpdate(ValueAnimator valueAnimator) {
@Override
public void onAnimationUpdate(ValueAnimator animator) {
int color = (Integer) animator.getAnimatedValue();
floatingActionButton.setBackgroundTintList(ColorUtils.generateColorStateList(color));
floatingActionButton.setBackgroundTintList(ColorStateList.valueOf(color));
}
});
colorAnimation.setDuration(300);
Expand Down
67 changes: 0 additions & 67 deletions lib/src/main/java/com/musenkishi/atelier/ColorUtils.java

This file was deleted.

0 comments on commit cc3c480

Please sign in to comment.