Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.animation.Animator;

public class Main {

    public static void deleteAnimator(Animator animator) {
        if (animator != null && animator.isRunning()) {
            animator.cancel();
        }
        animator = null;
    }

    public static boolean isRunning(Animator animator) {
        return animator != null && animator.isRunning();
    }
}