DragAndDropPermissionsCompat.java
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
*/