Fix for missing setters in getInstance method
The zoomAndCenterAnimated method in BarLineChartBase crashes with a NullPointer exception because the yAxis variable is null when onAnimationUpdate is called. The yAxis is null because of missing setters in the getInstance method of AnimatedZoomJob.
This commit is contained in:
parent
0c919ab02d
commit
6c54f0b0a9
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ public class AnimatedZoomJob extends AnimatedViewPortJob implements Animator.Ani
|
|||
result.view = v;
|
||||
result.xOrigin = xOrigin;
|
||||
result.yOrigin = yOrigin;
|
||||
result.yAxis = axis;
|
||||
result.xAxisRange = xAxisRange;
|
||||
result.resetAnimator();
|
||||
result.animator.setDuration(duration);
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue