bw.java 5.78 KB
import android.animation.Animator;
import android.annotation.TargetApi;
import android.support.annotation.RequiresApi;
import android.support.transition.TransitionPort;
import android.support.transition.TransitionValues;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.Map;

@TargetApi(14)
@RequiresApi(14)
abstract class bw
  extends TransitionPort
{
  private static final String[] a = { "android:visibility:visibility", "android:visibility:parent" };
  
  private static void d(TransitionValues paramTransitionValues)
  {
    int i = paramTransitionValues.view.getVisibility();
    paramTransitionValues.values.put("android:visibility:visibility", Integer.valueOf(i));
    paramTransitionValues.values.put("android:visibility:parent", paramTransitionValues.view.getParent());
  }
  
  public Animator a(ViewGroup paramViewGroup, TransitionValues paramTransitionValues1, int paramInt1, TransitionValues paramTransitionValues2, int paramInt2)
  {
    return null;
  }
  
  public Animator a(ViewGroup paramViewGroup, TransitionValues paramTransitionValues1, TransitionValues paramTransitionValues2)
  {
    int i = 0;
    bw.a locala = new bw.a();
    locala.a = false;
    locala.b = false;
    label114:
    label181:
    label197:
    View localView1;
    label235:
    View localView2;
    label245:
    label257:
    int j;
    if (paramTransitionValues1 != null)
    {
      locala.c = ((Integer)paramTransitionValues1.values.get("android:visibility:visibility")).intValue();
      locala.e = ((ViewGroup)paramTransitionValues1.values.get("android:visibility:parent"));
      if (paramTransitionValues2 == null) {
        break label358;
      }
      locala.d = ((Integer)paramTransitionValues2.values.get("android:visibility:visibility")).intValue();
      locala.f = ((ViewGroup)paramTransitionValues2.values.get("android:visibility:parent"));
      if ((paramTransitionValues1 != null) && (paramTransitionValues2 != null))
      {
        if ((locala.c != locala.d) || (locala.e != locala.f))
        {
          if (locala.c == locala.d) {
            break label396;
          }
          if (locala.c != 0) {
            break label373;
          }
          locala.b = false;
          locala.a = true;
        }
      }
      else
      {
        if (paramTransitionValues1 != null) {
          break label455;
        }
        locala.b = true;
        locala.a = true;
      }
      if (!locala.a) {
        break label522;
      }
      if ((this.h.size() > 0) || (this.g.size() > 0))
      {
        if (paramTransitionValues1 == null) {
          break label474;
        }
        localView1 = paramTransitionValues1.view;
        if (paramTransitionValues2 == null) {
          break label480;
        }
        localView2 = paramTransitionValues2.view;
        if (localView1 == null) {
          break label486;
        }
        i = localView1.getId();
        if (localView2 == null) {
          break label492;
        }
        j = localView2.getId();
        label269:
        if ((!a(localView1, i)) && (!a(localView2, j))) {
          break label498;
        }
        i = 1;
      }
    }
    for (;;)
    {
      if ((i != 0) || (locala.e != null) || (locala.f != null))
      {
        if (locala.b)
        {
          return a(paramViewGroup, paramTransitionValues1, locala.c, paramTransitionValues2, locala.d);
          locala.c = -1;
          locala.e = null;
          break;
          label358:
          locala.d = -1;
          locala.f = null;
          break label114;
          label373:
          if (locala.d != 0) {
            break label181;
          }
          locala.b = true;
          locala.a = true;
          break label181;
          label396:
          if (locala.e == locala.f) {
            break label181;
          }
          if (locala.f == null)
          {
            locala.b = false;
            locala.a = true;
            break label181;
          }
          if (locala.e != null) {
            break label181;
          }
          locala.b = true;
          locala.a = true;
          break label181;
          label455:
          if (paramTransitionValues2 != null) {
            break label197;
          }
          locala.b = false;
          locala.a = true;
          break label197;
          label474:
          localView1 = null;
          break label235;
          label480:
          localView2 = null;
          break label245;
          label486:
          i = -1;
          break label257;
          label492:
          j = -1;
          break label269;
          label498:
          i = 0;
          continue;
        }
        return b(paramViewGroup, paramTransitionValues1, locala.c, paramTransitionValues2, locala.d);
      }
    }
    label522:
    return null;
  }
  
  public void a(TransitionValues paramTransitionValues)
  {
    d(paramTransitionValues);
  }
  
  public final String[] a()
  {
    return a;
  }
  
  public Animator b(ViewGroup paramViewGroup, TransitionValues paramTransitionValues1, int paramInt1, TransitionValues paramTransitionValues2, int paramInt2)
  {
    return null;
  }
  
  public void b(TransitionValues paramTransitionValues)
  {
    d(paramTransitionValues);
  }
  
  public boolean c(TransitionValues paramTransitionValues)
  {
    if (paramTransitionValues == null) {
      return false;
    }
    int i = ((Integer)paramTransitionValues.values.get("android:visibility:visibility")).intValue();
    paramTransitionValues = (View)paramTransitionValues.values.get("android:visibility:parent");
    return (i == 0) && (paramTransitionValues != null);
  }
  
  static final class a
  {
    boolean a;
    boolean b;
    int c;
    int d;
    ViewGroup e;
    ViewGroup f;
  }
}


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