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

* commit 'af5b2d3f2308296a7dec93e4f790fb587cd86197':
  Doc fix: Update code snippet in displaying bitmaps training class Bug: 12715659
This commit is contained in:
Adam Koch
2014-01-29 23:15:16 +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 {