Skip to content

Commit

Permalink
crespo: Fix setting the colour to 0
Browse files Browse the repository at this point in the history
Change-Id: I6b1ad02fe1834862d1c148c7150279da8a493457
  • Loading branch information
klusark committed Aug 27, 2013
1 parent 91c0c73 commit e339a07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
Expand Up @@ -77,6 +77,9 @@ public static boolean setColors(String colors) {
long colorValue = Long.parseLong(parts[i], 10);
colorValue <<= 24;
--colorValue;
if (colorValue < 0) {
colorValue = 0;
}
if (!FileUtils.writeLine(FILE_PATH[i], Long.toString(colorValue))) {
return false;
}
Expand Down

0 comments on commit e339a07

Please sign in to comment.