mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-06 06:08:24 +08:00
progressbar add animatedimagedrawable support
This commit is contained in:
parent
30e98175b0
commit
3690137d1a
@ -15,6 +15,7 @@
|
||||
#include <drawables/rotatedrawable.h>
|
||||
#include <drawables/clipdrawable.h>
|
||||
#include <drawables/animatedrotatedrawable.h>
|
||||
#include <drawables/animatedimagedrawable.h>
|
||||
#include <drawables/drawablecontainer.h>
|
||||
#include <drawables/levellistdrawable.h>
|
||||
#include <drawables/layerdrawable.h>
|
||||
|
@ -598,6 +598,9 @@ void ProgressBar::stopAnimation() {
|
||||
if (dynamic_cast<AnimatedRotateDrawable*>(mIndeterminateDrawable)) {
|
||||
((AnimatedRotateDrawable*) mIndeterminateDrawable)->stop();
|
||||
mShouldStartAnimationDrawable = false;
|
||||
}else if(dynamic_cast<AnimatedImageDrawable*>(mIndeterminateDrawable)){
|
||||
((AnimatedImageDrawable*) mIndeterminateDrawable)->stop();
|
||||
mShouldStartAnimationDrawable = false;
|
||||
}
|
||||
postInvalidate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user