Fix default stroke width and NPE for line with no stroke width
Also fixes restart on visiblity change in AnimationDrawable BUG: 15437284 Change-Id: I698e7ffb11489061a38fbcd5cea10ba11a6abb34
This commit is contained in:
@@ -94,7 +94,7 @@ public class AnimationDrawable extends DrawableContainer implements Runnable, An
|
||||
boolean changed = super.setVisible(visible, restart);
|
||||
if (visible) {
|
||||
if (changed || restart) {
|
||||
setFrame(0, true, mCurFrame >= 0);
|
||||
setFrame(0, true, restart || mCurFrame >= 0);
|
||||
}
|
||||
} else {
|
||||
unscheduleSelf(this);
|
||||
|
||||
Reference in New Issue
Block a user