gg.java
2.68 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
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v4.view.ViewCompat;
import android.support.v7.appcompat.R.styleable;
import android.support.v7.widget.DrawableUtils;
import android.support.v7.widget.TintTypedArray;
import android.util.AttributeSet;
import android.widget.SeekBar;
public final class gg
extends gf
{
public final SeekBar b;
public Drawable c;
private ColorStateList d = null;
private PorterDuff.Mode e = null;
private boolean f = false;
private boolean g = false;
public gg(SeekBar paramSeekBar)
{
super(paramSeekBar);
this.b = paramSeekBar;
}
private void a()
{
if ((this.c != null) && ((this.f) || (this.g)))
{
this.c = DrawableCompat.wrap(this.c.mutate());
if (this.f) {
DrawableCompat.setTintList(this.c, this.d);
}
if (this.g) {
DrawableCompat.setTintMode(this.c, this.e);
}
if (this.c.isStateful()) {
this.c.setState(this.b.getDrawableState());
}
}
}
public final void a(AttributeSet paramAttributeSet, int paramInt)
{
super.a(paramAttributeSet, paramInt);
paramAttributeSet = TintTypedArray.obtainStyledAttributes(this.b.getContext(), paramAttributeSet, R.styleable.AppCompatSeekBar, paramInt, 0);
Drawable localDrawable = paramAttributeSet.getDrawableIfKnown(R.styleable.AppCompatSeekBar_android_thumb);
if (localDrawable != null) {
this.b.setThumb(localDrawable);
}
localDrawable = paramAttributeSet.getDrawable(R.styleable.AppCompatSeekBar_tickMark);
if (this.c != null) {
this.c.setCallback(null);
}
this.c = localDrawable;
if (localDrawable != null)
{
localDrawable.setCallback(this.b);
DrawableCompat.setLayoutDirection(localDrawable, ViewCompat.getLayoutDirection(this.b));
if (localDrawable.isStateful()) {
localDrawable.setState(this.b.getDrawableState());
}
a();
}
this.b.invalidate();
if (paramAttributeSet.hasValue(R.styleable.AppCompatSeekBar_tickMarkTintMode))
{
this.e = DrawableUtils.a(paramAttributeSet.getInt(R.styleable.AppCompatSeekBar_tickMarkTintMode, -1), this.e);
this.g = true;
}
if (paramAttributeSet.hasValue(R.styleable.AppCompatSeekBar_tickMarkTint))
{
this.d = paramAttributeSet.getColorStateList(R.styleable.AppCompatSeekBar_tickMarkTint);
this.f = true;
}
paramAttributeSet.recycle();
a();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/gg.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/