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

This commit is contained in:
Adam Koch
2014-01-29 23:04:02 +00:00
committed by Android (Google) Code Review

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 {