j.java 4.39 KB
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.os.Build.VERSION;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.design.widget.VisibilityAwareImageButton;
import android.support.v4.view.ViewCompat;
import android.view.ViewPropertyAnimator;

@TargetApi(14)
@RequiresApi(14)
public class j
  extends i
{
  private float r = this.n.getRotation();
  
  public j(VisibilityAwareImageButton paramVisibilityAwareImageButton, o paramo, s.d paramd)
  {
    super(paramVisibilityAwareImageButton, paramo, paramd);
  }
  
  private boolean l()
  {
    return (ViewCompat.isLaidOut(this.n)) && (!this.n.isInEditMode());
  }
  
  final void a(@Nullable final k.a parama, final boolean paramBoolean)
  {
    if (k()) {
      return;
    }
    this.n.animate().cancel();
    if (l())
    {
      this.c = 1;
      this.n.animate().scaleX(0.0F).scaleY(0.0F).alpha(0.0F).setDuration(200L).setInterpolator(c.c).setListener(new AnimatorListenerAdapter()
      {
        private boolean d;
        
        public final void onAnimationCancel(Animator paramAnonymousAnimator)
        {
          this.d = true;
        }
        
        public final void onAnimationEnd(Animator paramAnonymousAnimator)
        {
          j.this.c = 0;
          if (!this.d)
          {
            paramAnonymousAnimator = j.this.n;
            if (!paramBoolean) {
              break label59;
            }
          }
          label59:
          for (int i = 8;; i = 4)
          {
            paramAnonymousAnimator.a(i, paramBoolean);
            if (parama != null) {
              parama.b();
            }
            return;
          }
        }
        
        public final void onAnimationStart(Animator paramAnonymousAnimator)
        {
          j.this.n.a(0, paramBoolean);
          this.d = false;
        }
      });
      return;
    }
    VisibilityAwareImageButton localVisibilityAwareImageButton = this.n;
    if (paramBoolean) {}
    for (int i = 8;; i = 4)
    {
      localVisibilityAwareImageButton.a(i, paramBoolean);
      if (parama == null) {
        break;
      }
      parama.b();
      return;
    }
  }
  
  final void b(@Nullable final k.a parama, final boolean paramBoolean)
  {
    if (j()) {}
    do
    {
      return;
      this.n.animate().cancel();
      if (l())
      {
        this.c = 2;
        if (this.n.getVisibility() != 0)
        {
          this.n.setAlpha(0.0F);
          this.n.setScaleY(0.0F);
          this.n.setScaleX(0.0F);
        }
        this.n.animate().scaleX(1.0F).scaleY(1.0F).alpha(1.0F).setDuration(200L).setInterpolator(c.d).setListener(new AnimatorListenerAdapter()
        {
          public final void onAnimationEnd(Animator paramAnonymousAnimator)
          {
            j.this.c = 0;
            if (parama != null) {
              parama.a();
            }
          }
          
          public final void onAnimationStart(Animator paramAnonymousAnimator)
          {
            j.this.n.a(0, paramBoolean);
          }
        });
        return;
      }
      this.n.a(0, paramBoolean);
      this.n.setAlpha(1.0F);
      this.n.setScaleY(1.0F);
      this.n.setScaleX(1.0F);
    } while (parama == null);
    parama.a();
  }
  
  boolean d()
  {
    return true;
  }
  
  final void e()
  {
    float f = this.n.getRotation();
    if (this.r != f)
    {
      this.r = f;
      if (Build.VERSION.SDK_INT == 19)
      {
        if (this.r % 90.0F == 0.0F) {
          break label135;
        }
        if (this.n.getLayerType() != 1) {
          this.n.setLayerType(1, null);
        }
      }
    }
    for (;;)
    {
      Object localObject;
      if (this.a != null)
      {
        localObject = this.a;
        f = -this.r;
        if (((n)localObject).l != f)
        {
          ((n)localObject).l = f;
          ((n)localObject).invalidateSelf();
        }
      }
      if (this.f != null)
      {
        localObject = this.f;
        f = -this.r;
        if (f != ((d)localObject).j)
        {
          ((d)localObject).j = f;
          ((d)localObject).invalidateSelf();
        }
      }
      return;
      label135:
      if (this.n.getLayerType() != 0) {
        this.n.setLayerType(0, null);
      }
    }
  }
}


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