gz.java
2.35 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
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources.Theme;
import android.graphics.Color;
import android.support.v4.graphics.ColorUtils;
import android.support.v7.widget.TintTypedArray;
import android.util.TypedValue;
public final class gz
{
public static final int[] a = { -16842910 };
public static final int[] b = { 16842908 };
static final int[] c = { 16843518 };
public static final int[] d = { 16842919 };
public static final int[] e = { 16842912 };
static final int[] f = { 16842913 };
static final int[] g = { -16842919, -16842908 };
public static final int[] h = new int[0];
private static final ThreadLocal<TypedValue> i = new ThreadLocal();
private static final int[] j = new int[1];
public static int a(Context paramContext, int paramInt)
{
j[0] = paramInt;
paramContext = TintTypedArray.obtainStyledAttributes(paramContext, null, j);
try
{
paramInt = paramContext.getColor(0, 0);
return paramInt;
}
finally
{
paramContext.recycle();
}
}
public static ColorStateList b(Context paramContext, int paramInt)
{
j[0] = paramInt;
paramContext = TintTypedArray.obtainStyledAttributes(paramContext, null, j);
try
{
ColorStateList localColorStateList = paramContext.getColorStateList(0);
return localColorStateList;
}
finally
{
paramContext.recycle();
}
}
public static int c(Context paramContext, int paramInt)
{
Object localObject = b(paramContext, paramInt);
if ((localObject != null) && (((ColorStateList)localObject).isStateful())) {
return ((ColorStateList)localObject).getColorForState(a, ((ColorStateList)localObject).getDefaultColor());
}
TypedValue localTypedValue = (TypedValue)i.get();
localObject = localTypedValue;
if (localTypedValue == null)
{
localObject = new TypedValue();
i.set(localObject);
}
paramContext.getTheme().resolveAttribute(16842803, (TypedValue)localObject, true);
float f1 = ((TypedValue)localObject).getFloat();
paramInt = a(paramContext, paramInt);
return ColorUtils.setAlphaComponent(paramInt, Math.round(f1 * Color.alpha(paramInt)));
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/gz.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/