cn$a.java 1.84 KB
import android.support.annotation.CallSuper;
import android.support.v4.os.BuildCompat;
import android.support.v4.view.ViewCompat;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;

class cn$a
  implements Animation.AnimationListener
{
  private Animation.AnimationListener a;
  private boolean b;
  View c;
  
  public cn$a(View paramView, Animation paramAnimation)
  {
    if ((paramView == null) || (paramAnimation == null)) {
      return;
    }
    this.c = paramView;
  }
  
  public cn$a(View paramView, Animation paramAnimation, Animation.AnimationListener paramAnimationListener)
  {
    if ((paramView == null) || (paramAnimation == null)) {
      return;
    }
    this.a = paramAnimationListener;
    this.c = paramView;
    this.b = true;
  }
  
  @CallSuper
  public void onAnimationEnd(Animation paramAnimation)
  {
    if ((this.c != null) && (this.b))
    {
      if ((!ViewCompat.isAttachedToWindow(this.c)) && (!BuildCompat.isAtLeastN())) {
        break label64;
      }
      this.c.post(new Runnable()
      {
        public final void run()
        {
          ViewCompat.setLayerType(cn.a.this.c, 0, null);
        }
      });
    }
    for (;;)
    {
      if (this.a != null) {
        this.a.onAnimationEnd(paramAnimation);
      }
      return;
      label64:
      ViewCompat.setLayerType(this.c, 0, null);
    }
  }
  
  public void onAnimationRepeat(Animation paramAnimation)
  {
    if (this.a != null) {
      this.a.onAnimationRepeat(paramAnimation);
    }
  }
  
  @CallSuper
  public void onAnimationStart(Animation paramAnimation)
  {
    if (this.a != null) {
      this.a.onAnimationStart(paramAnimation);
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/cn$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */