private boolean ensureAnimation(boolean running) {
    boolean changes = animator.isRunning() != running;

    if (running) {
      animator.resume();
    }
    else {
      animator.suspend();
    }

    return changes;
  }
private boolean ensureAnimation(boolean running)