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