Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.animation.Animator;
import android.annotation.SuppressLint;
import android.os.Build;

public class Main {
    @SuppressLint("NewApi")
    public static void startOrResumeAnimator(Animator animator) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            if (animator.isPaused()) {
                animator.resume();
                return;
            }
        }

        animator.start();
    }
}