private void restoreAndAddAnimation(Label label) { if (currentSelectedLabel != null && currentSelectedLabel != label) { ButtonAnimation.restore(currentSelectedLabel); } ButtonAnimation.addAnimation(label); }
private void restoreAnimation(Label label) { if (currentSelectedLabel == null) { ButtonAnimation.restore(label); return; } if (currentSelectedLabel != label) { ButtonAnimation.restore(label); } }