am cb3ea3d4: Merge "Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659" into klp-docs

* commit 'cb3ea3d47449a669e0d28131cf9254d5476bae73':
  Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659
This commit is contained in:
Adam Koch
2014-01-29 23:06:46 +00:00
committed by Android Git Automerger

View File

@@ -172,7 +172,8 @@ public static boolean cancelPotentialWork(int data, ImageView imageView) {
if (bitmapWorkerTask != null) {
final int bitmapData = bitmapWorkerTask.data;
if (bitmapData != data) {
// If bitmapData is not yet set or it differs from the new data
if (bitmapData == 0 || bitmapData != data) {
// Cancel previous task
bitmapWorkerTask.cancel(true);
} else {