DragAndDropPermissionsCompat.java 1.97 KB
package android.support.v13.view;

import android.annotation.TargetApi;
import android.app.Activity;
import android.support.annotation.RequiresApi;
import android.support.annotation.RestrictTo;
import android.support.v4.os.BuildCompat;
import android.view.DragAndDropPermissions;
import android.view.DragEvent;

@TargetApi(13)
@RequiresApi(13)
public final class DragAndDropPermissionsCompat
{
  private static c a = new b();
  private Object b;
  
  static
  {
    if (BuildCompat.isAtLeastN())
    {
      a = new a();
      return;
    }
  }
  
  private DragAndDropPermissionsCompat(Object paramObject)
  {
    this.b = paramObject;
  }
  
  @RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
  public static DragAndDropPermissionsCompat request(Activity paramActivity, DragEvent paramDragEvent)
  {
    paramActivity = a.a(paramActivity, paramDragEvent);
    if (paramActivity != null) {
      return new DragAndDropPermissionsCompat(paramActivity);
    }
    return null;
  }
  
  public final void release()
  {
    a.a(this.b);
  }
  
  static final class a
    extends DragAndDropPermissionsCompat.b
  {
    public final Object a(Activity paramActivity, DragEvent paramDragEvent)
    {
      return paramActivity.requestDragAndDropPermissions(paramDragEvent);
    }
    
    public final void a(Object paramObject)
    {
      ((DragAndDropPermissions)paramObject).release();
    }
  }
  
  static class b
    implements DragAndDropPermissionsCompat.c
  {
    public Object a(Activity paramActivity, DragEvent paramDragEvent)
    {
      return null;
    }
    
    public void a(Object paramObject) {}
  }
  
  static abstract interface c
  {
    public abstract Object a(Activity paramActivity, DragEvent paramDragEvent);
    
    public abstract void a(Object paramObject);
  }
}


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