TextInputEditText.java
1.55 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
package android.support.design.widget;
import android.content.Context;
import android.support.v7.widget.AppCompatEditText;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewParent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
public class TextInputEditText
extends AppCompatEditText
{
public TextInputEditText(Context paramContext)
{
super(paramContext);
}
public TextInputEditText(Context paramContext, AttributeSet paramAttributeSet)
{
super(paramContext, paramAttributeSet);
}
public TextInputEditText(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
{
super(paramContext, paramAttributeSet, paramInt);
}
public InputConnection onCreateInputConnection(EditorInfo paramEditorInfo)
{
InputConnection localInputConnection = super.onCreateInputConnection(paramEditorInfo);
if ((localInputConnection != null) && (paramEditorInfo.hintText == null)) {}
for (ViewParent localViewParent = getParent();; localViewParent = localViewParent.getParent()) {
if ((localViewParent instanceof View))
{
if ((localViewParent instanceof TextInputLayout)) {
paramEditorInfo.hintText = ((TextInputLayout)localViewParent).getHint();
}
}
else {
return localInputConnection;
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/design/widget/TextInputEditText.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/