Skip to content

Commit

Permalink
Merge pull request #9103 from garymathews/TIMOB-24756
Browse files Browse the repository at this point in the history
[TIMOB-24756] Android: Fix ImageView animation task
  • Loading branch information
ssjsamir committed Jun 5, 2017
2 parents c313d2c + 238f7d9 commit 689db29
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -990,15 +990,7 @@ public int getTintColor(){
@Override
public void release()
{
super.release();
if (loader != null) {
synchronized (loader) {
loader.notify();
}
loader = null;
}
animating.set(false);
isStopping.set(true);
handleStop();
synchronized(releasedLock) {
if (imageSources != null) {
for (TiDrawableReference imageref : imageSources) {
Expand All @@ -1009,11 +1001,12 @@ public void release()
imageSources = null;
}
}

if (timer != null) {
timer.cancel();
timer = null;
}
defaultImageSource = null;

super.release();
}
}

0 comments on commit 689db29

Please sign in to comment.