EditorInfoCompat.java
2.7 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package android.support.v13.view.inputmethod;
import android.annotation.TargetApi;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.os.BuildCompat;
import android.view.inputmethod.EditorInfo;
@TargetApi(13)
@RequiresApi(13)
public final class EditorInfoCompat
{
private static final String[] a = new String[0];
private static final c b = new b((byte)0);
static
{
if (BuildCompat.isAtLeastNMR1())
{
b = new a((byte)0);
return;
}
}
@NonNull
public static String[] getContentMimeTypes(EditorInfo paramEditorInfo)
{
return b.a(paramEditorInfo);
}
public static void setContentMimeTypes(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
{
b.a(paramEditorInfo, paramArrayOfString);
}
static final class a
implements EditorInfoCompat.c
{
public final void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
{
paramEditorInfo.contentMimeTypes = paramArrayOfString;
}
@NonNull
public final String[] a(@NonNull EditorInfo paramEditorInfo)
{
paramEditorInfo = paramEditorInfo.contentMimeTypes;
if (paramEditorInfo != null) {
return paramEditorInfo;
}
return EditorInfoCompat.a();
}
}
static final class b
implements EditorInfoCompat.c
{
private static String a = "android.support.v13.view.inputmethod.EditorInfoCompat.CONTENT_MIME_TYPES";
public final void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString)
{
if (paramEditorInfo.extras == null) {
paramEditorInfo.extras = new Bundle();
}
paramEditorInfo.extras.putStringArray(a, paramArrayOfString);
}
@NonNull
public final String[] a(@NonNull EditorInfo paramEditorInfo)
{
if (paramEditorInfo.extras == null) {
paramEditorInfo = EditorInfoCompat.a();
}
String[] arrayOfString;
do
{
return paramEditorInfo;
arrayOfString = paramEditorInfo.extras.getStringArray(a);
paramEditorInfo = arrayOfString;
} while (arrayOfString != null);
return EditorInfoCompat.a();
}
}
static abstract interface c
{
public abstract void a(@NonNull EditorInfo paramEditorInfo, @Nullable String[] paramArrayOfString);
@NonNull
public abstract String[] a(@NonNull EditorInfo paramEditorInfo);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v13/view/inputmethod/EditorInfoCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/