Use two ones instead of one twice

This commit is contained in:
hollorol 2024-08-04 13:34:58 +02:00
parent 53fa85e679
commit 35e51c0510

View File

@ -138,9 +138,7 @@ fun fiboTime(): IntArray {
val now = GregorianCalendar()
var h:Int = now.get(GregorianCalendar.HOUR)
if (h != 0) {
h += 1
} else {
if (h == 0) {
h = 12
}
@ -178,6 +176,11 @@ fun fiboTime(): IntArray {
returnVal[i] = colors[mins[i]+hours[i]]
}
if(returnVal[4] == colors[0] && returnVal[3] == colors[3]) {
returnVal[3] = colors[2]
returnVal[4] = colors[1]
}
return returnVal
}