mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
fix animatedrotatedrawable's animation(cannt stopped in progressbar)
This commit is contained in:
parent
0f749cafbe
commit
9cbcc5b406
@ -116,8 +116,10 @@ bool AnimatedRotateDrawable::isRunning() {
|
||||
|
||||
void AnimatedRotateDrawable::nextFrame() {
|
||||
unscheduleSelf(mNextFrame);
|
||||
scheduleSelf(mNextFrame,SystemClock::uptimeMillis()+mState->mFrameDuration);
|
||||
mCurrentDegrees += mIncrement;
|
||||
if(mRunning){
|
||||
scheduleSelf(mNextFrame,SystemClock::uptimeMillis()+mState->mFrameDuration);
|
||||
mCurrentDegrees += mIncrement;
|
||||
}
|
||||
}
|
||||
|
||||
bool AnimatedRotateDrawable::setVisible(bool visible, bool restart){
|
||||
|
Loading…
Reference in New Issue
Block a user