PopupMenuCompat.java 1.05 KB
package android.support.v4.widget;

import android.os.Build.VERSION;
import android.view.View.OnTouchListener;
import android.widget.PopupMenu;

public final class PopupMenuCompat
{
  static final c a = new a();
  
  static
  {
    if (Build.VERSION.SDK_INT >= 19)
    {
      a = new b();
      return;
    }
  }
  
  public static View.OnTouchListener getDragToOpenListener(Object paramObject)
  {
    return a.a(paramObject);
  }
  
  static class a
    implements PopupMenuCompat.c
  {
    public View.OnTouchListener a(Object paramObject)
    {
      return null;
    }
  }
  
  static final class b
    extends PopupMenuCompat.a
  {
    public final View.OnTouchListener a(Object paramObject)
    {
      return ((PopupMenu)paramObject).getDragToOpenListener();
    }
  }
  
  static abstract interface c
  {
    public abstract View.OnTouchListener a(Object paramObject);
  }
}


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