/**
* Setup circles on a screen
*/
private void drawLineToTouchPoint(Canvas canvas) {
if (touchPoint.height() > 0 && touchPoint.width() > 0) {
drawLine(canvas, circles[connectionOrder.get(connectionOrder.size() - 1)], touchPoint);
}
}
Forgot to check that !connectionOrder.isEmpty()
It may crash if the view refreshes when you your finger on, and it's blank.
Forgot to check that !connectionOrder.isEmpty()
It may crash if the view refreshes when you your finger on, and it's blank.