Skip to content

Commit

Permalink
Merge pull request #6683 from hieupham007/timob-18392
Browse files Browse the repository at this point in the history
[TIMOB-18392]: Fire 'stop' when animation finishes
  • Loading branch information
pec1985 committed Mar 5, 2015
2 parents 4aa40be + e5649c6 commit 5371433
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,12 @@ public void run()
wait();
}
}

BitmapWithIndex b = loader.getBitmapQueue().take();
ArrayBlockingQueue<BitmapWithIndex> bitmapQueue = loader.getBitmapQueue();
//Fire stop event when animation finishes
if (!isLoading.get() && bitmapQueue.isEmpty()) {
fireStop();
}
BitmapWithIndex b = bitmapQueue.take();
Log.d(TAG, "set image: " + b.index, Log.DEBUG_MODE);
setImage(b.bitmap);
fireChange(b.index);
Expand Down

0 comments on commit 5371433

Please sign in to comment.