Merge pull request #669 from Gustl22/sun
Sun: fix color update on init equal progress
This commit is contained in:
commit
ca3871eb61
@ -206,6 +206,11 @@ public class Sun {
|
||||
progressEnd = progress;
|
||||
}
|
||||
|
||||
if (progressStart == progressEnd) {
|
||||
mLightColor = mColorMap.get(progressStart);
|
||||
return mLightColor;
|
||||
}
|
||||
|
||||
float fraction = ((mProgress + 2f - progressStart) % 2f) / ((progressEnd + 2f - progressStart) % 2f);
|
||||
|
||||
int colorStart = mColorMap.get(progressStart);
|
||||
|
Loading…
x
Reference in New Issue
Block a user