diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dreams/phototable/PhotoSource.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dreams/phototable/PhotoSource.java b/src/com/android/dreams/phototable/PhotoSource.java index a1ca289..7f1dd51 100644 --- a/src/com/android/dreams/phototable/PhotoSource.java +++ b/src/com/android/dreams/phototable/PhotoSource.java @@ -124,8 +124,9 @@ public abstract class PhotoSource { imageData = mImageQueue.poll(); } - if (!mImageQueue.isEmpty()) { + if (imageData != null) { image = load(imageData, options, longSide, shortSide); + imageData = null; } tries++; |