gi.java
1.81 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
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.RequiresApi;
import android.support.v7.appcompat.R.styleable;
import android.support.v7.widget.AppCompatDrawableManager;
import android.util.AttributeSet;
import android.widget.TextView;
@TargetApi(17)
@RequiresApi(17)
final class gi
extends gh
{
private ha b;
private ha c;
gi(TextView paramTextView)
{
super(paramTextView);
}
final void a()
{
super.a();
if ((this.b != null) || (this.c != null))
{
Drawable[] arrayOfDrawable = this.a.getCompoundDrawablesRelative();
a(arrayOfDrawable[0], this.b);
a(arrayOfDrawable[2], this.c);
}
}
final void a(AttributeSet paramAttributeSet, int paramInt)
{
super.a(paramAttributeSet, paramInt);
Context localContext = this.a.getContext();
AppCompatDrawableManager localAppCompatDrawableManager = AppCompatDrawableManager.get();
paramAttributeSet = localContext.obtainStyledAttributes(paramAttributeSet, R.styleable.AppCompatTextHelper, paramInt, 0);
if (paramAttributeSet.hasValue(R.styleable.AppCompatTextHelper_android_drawableStart)) {
this.b = a(localContext, localAppCompatDrawableManager, paramAttributeSet.getResourceId(R.styleable.AppCompatTextHelper_android_drawableStart, 0));
}
if (paramAttributeSet.hasValue(R.styleable.AppCompatTextHelper_android_drawableEnd)) {
this.c = a(localContext, localAppCompatDrawableManager, paramAttributeSet.getResourceId(R.styleable.AppCompatTextHelper_android_drawableEnd, 0));
}
paramAttributeSet.recycle();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/gi.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/