Code sanitization
- Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
This commit is contained in:
1 parent
cc257380fe
commit
0de011705b
26 files changed
+65
-86
No files matched your search
@@ -18,7 +18,7 @@ public class PreloadIconDrawable extends Drawable {
|
||||
private static final float ANIMATION_PROGRESS_STARTED = 0f;
|
||||
private static final float ANIMATION_PROGRESS_COMPLETED = 1.0f;
|
||||
|
||||
private static final float MIN_SATUNATION = 0.2f;
|
||||
private static final float MIN_SATURATION = 0.2f;
|
||||
private static final float MIN_LIGHTNESS = 0.6f;
|
||||
|
||||
private static final float ICON_SCALE_FACTOR = 0.5f;
|
||||
@@ -242,7 +242,7 @@ public class PreloadIconDrawable extends Drawable {
|
||||
// Make sure that the dominant color has enough saturation to be visible properly.
|
||||
float[] hsv = new float[3];
|
||||
Color.colorToHSV(mIndicatorColor, hsv);
|
||||
if (hsv[1] < MIN_SATUNATION) {
|
||||
if (hsv[1] < MIN_SATURATION) {
|
||||
mIndicatorColor = DEFAULT_COLOR;
|
||||
return mIndicatorColor;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user