We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fbc124 commit 0670f02Copy full SHA for 0670f02
1 file changed
graphics/java/android/graphics/drawable/VectorDrawable.java
@@ -238,14 +238,13 @@ public ConstantState getConstantState() {
238
239
@Override
240
public void draw(Canvas canvas) {
241
- final int saveCount = canvas.save();
242
final Rect bounds = getBounds();
243
-
244
if (bounds.width() == 0 || bounds.height() == 0) {
245
// too small to draw
246
return;
247
}
248
+ final int saveCount = canvas.save();
249
final boolean needMirroring = needMirroring();
250
251
canvas.translate(bounds.left, bounds.top);
0 commit comments