DrawableWrapper.java
4.46 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
package android.support.v7.graphics.drawable;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff.Mode;
import android.graphics.Rect;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Drawable.Callback;
import android.support.annotation.RestrictTo;
import android.support.v4.graphics.drawable.DrawableCompat;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public class DrawableWrapper
extends Drawable
implements Drawable.Callback
{
private Drawable a;
public DrawableWrapper(Drawable paramDrawable)
{
setWrappedDrawable(paramDrawable);
}
public void draw(Canvas paramCanvas)
{
this.a.draw(paramCanvas);
}
public int getChangingConfigurations()
{
return this.a.getChangingConfigurations();
}
public Drawable getCurrent()
{
return this.a.getCurrent();
}
public int getIntrinsicHeight()
{
return this.a.getIntrinsicHeight();
}
public int getIntrinsicWidth()
{
return this.a.getIntrinsicWidth();
}
public int getMinimumHeight()
{
return this.a.getMinimumHeight();
}
public int getMinimumWidth()
{
return this.a.getMinimumWidth();
}
public int getOpacity()
{
return this.a.getOpacity();
}
public boolean getPadding(Rect paramRect)
{
return this.a.getPadding(paramRect);
}
public int[] getState()
{
return this.a.getState();
}
public Region getTransparentRegion()
{
return this.a.getTransparentRegion();
}
public Drawable getWrappedDrawable()
{
return this.a;
}
public void invalidateDrawable(Drawable paramDrawable)
{
invalidateSelf();
}
public boolean isAutoMirrored()
{
return DrawableCompat.isAutoMirrored(this.a);
}
public boolean isStateful()
{
return this.a.isStateful();
}
public void jumpToCurrentState()
{
DrawableCompat.jumpToCurrentState(this.a);
}
public void onBoundsChange(Rect paramRect)
{
this.a.setBounds(paramRect);
}
protected boolean onLevelChange(int paramInt)
{
return this.a.setLevel(paramInt);
}
public void scheduleDrawable(Drawable paramDrawable, Runnable paramRunnable, long paramLong)
{
scheduleSelf(paramRunnable, paramLong);
}
public void setAlpha(int paramInt)
{
this.a.setAlpha(paramInt);
}
public void setAutoMirrored(boolean paramBoolean)
{
DrawableCompat.setAutoMirrored(this.a, paramBoolean);
}
public void setChangingConfigurations(int paramInt)
{
this.a.setChangingConfigurations(paramInt);
}
public void setColorFilter(ColorFilter paramColorFilter)
{
this.a.setColorFilter(paramColorFilter);
}
public void setDither(boolean paramBoolean)
{
this.a.setDither(paramBoolean);
}
public void setFilterBitmap(boolean paramBoolean)
{
this.a.setFilterBitmap(paramBoolean);
}
public void setHotspot(float paramFloat1, float paramFloat2)
{
DrawableCompat.setHotspot(this.a, paramFloat1, paramFloat2);
}
public void setHotspotBounds(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
DrawableCompat.setHotspotBounds(this.a, paramInt1, paramInt2, paramInt3, paramInt4);
}
public boolean setState(int[] paramArrayOfInt)
{
return this.a.setState(paramArrayOfInt);
}
public void setTint(int paramInt)
{
DrawableCompat.setTint(this.a, paramInt);
}
public void setTintList(ColorStateList paramColorStateList)
{
DrawableCompat.setTintList(this.a, paramColorStateList);
}
public void setTintMode(PorterDuff.Mode paramMode)
{
DrawableCompat.setTintMode(this.a, paramMode);
}
public boolean setVisible(boolean paramBoolean1, boolean paramBoolean2)
{
return (super.setVisible(paramBoolean1, paramBoolean2)) || (this.a.setVisible(paramBoolean1, paramBoolean2));
}
public void setWrappedDrawable(Drawable paramDrawable)
{
if (this.a != null) {
this.a.setCallback(null);
}
this.a = paramDrawable;
if (paramDrawable != null) {
paramDrawable.setCallback(this);
}
}
public void unscheduleDrawable(Drawable paramDrawable, Runnable paramRunnable)
{
unscheduleSelf(paramRunnable);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/graphics/drawable/DrawableWrapper.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/