LayoutInflaterCompat.java 3.09 KB
package android.support.v4.view;

import android.os.Build.VERSION;
import android.view.LayoutInflater;
import android.view.LayoutInflater.Factory;
import android.view.LayoutInflater.Factory2;
import ee.a;
import ef;
import ef.a;

public final class LayoutInflaterCompat
{
  static final a a = new b();
  
  static
  {
    int i = Build.VERSION.SDK_INT;
    if (i >= 21)
    {
      a = new d();
      return;
    }
    if (i >= 11)
    {
      a = new c();
      return;
    }
  }
  
  public static LayoutInflaterFactory getFactory(LayoutInflater paramLayoutInflater)
  {
    return a.a(paramLayoutInflater);
  }
  
  public static void setFactory(LayoutInflater paramLayoutInflater, LayoutInflaterFactory paramLayoutInflaterFactory)
  {
    a.a(paramLayoutInflater, paramLayoutInflaterFactory);
  }
  
  static abstract interface a
  {
    public abstract LayoutInflaterFactory a(LayoutInflater paramLayoutInflater);
    
    public abstract void a(LayoutInflater paramLayoutInflater, LayoutInflaterFactory paramLayoutInflaterFactory);
  }
  
  static class b
    implements LayoutInflaterCompat.a
  {
    public final LayoutInflaterFactory a(LayoutInflater paramLayoutInflater)
    {
      paramLayoutInflater = paramLayoutInflater.getFactory();
      if ((paramLayoutInflater instanceof ee.a)) {
        return ((ee.a)paramLayoutInflater).a;
      }
      return null;
    }
    
    public void a(LayoutInflater paramLayoutInflater, LayoutInflaterFactory paramLayoutInflaterFactory)
    {
      if (paramLayoutInflaterFactory != null) {}
      for (paramLayoutInflaterFactory = new ee.a(paramLayoutInflaterFactory);; paramLayoutInflaterFactory = null)
      {
        paramLayoutInflater.setFactory(paramLayoutInflaterFactory);
        return;
      }
    }
  }
  
  static class c
    extends LayoutInflaterCompat.b
  {
    public void a(LayoutInflater paramLayoutInflater, LayoutInflaterFactory paramLayoutInflaterFactory)
    {
      if (paramLayoutInflaterFactory != null) {}
      for (paramLayoutInflaterFactory = new ef.a(paramLayoutInflaterFactory);; paramLayoutInflaterFactory = null)
      {
        paramLayoutInflater.setFactory2(paramLayoutInflaterFactory);
        LayoutInflater.Factory localFactory = paramLayoutInflater.getFactory();
        if (!(localFactory instanceof LayoutInflater.Factory2)) {
          break;
        }
        ef.a(paramLayoutInflater, (LayoutInflater.Factory2)localFactory);
        return;
      }
      ef.a(paramLayoutInflater, paramLayoutInflaterFactory);
    }
  }
  
  static final class d
    extends LayoutInflaterCompat.c
  {
    public final void a(LayoutInflater paramLayoutInflater, LayoutInflaterFactory paramLayoutInflaterFactory)
    {
      if (paramLayoutInflaterFactory != null) {}
      for (paramLayoutInflaterFactory = new ef.a(paramLayoutInflaterFactory);; paramLayoutInflaterFactory = null)
      {
        paramLayoutInflater.setFactory2(paramLayoutInflaterFactory);
        return;
      }
    }
  }
}


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