Bug 1081406: Remove unnecessary numeric casts. r=rnewman

This commit is contained in:
Chris Kitching
2014-10-11 00:42:36 +01:00
parent 8459338c13
commit 74d2f1eb58
17 changed files with 27 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ public class FadedTextView extends ThemedTextView {
public FadedTextGradient(int width, int fadeWidth, int color) {
super(0, 0, width, 0,
new int[] { color, color, 0x0 },
new float[] { 0, ((float) (width - fadeWidth) / (float) width), 1.0f },
new float[] { 0, ((float) (width - fadeWidth) / width), 1.0f },
Shader.TileMode.CLAMP);
mWidth = width;