diff options
Diffstat (limited to 'src/com/android/dreams/phototable/StockSource.java')
-rw-r--r-- | src/com/android/dreams/phototable/StockSource.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/dreams/phototable/StockSource.java b/src/com/android/dreams/phototable/StockSource.java index d7b3500..be2a860 100644 --- a/src/com/android/dreams/phototable/StockSource.java +++ b/src/com/android/dreams/phototable/StockSource.java @@ -94,16 +94,22 @@ public class StockSource extends PhotoSource { return is; } + @Override public ImageData naturalNext(ImageData current) { int idx = Integer.valueOf(current.id); idx = (idx + 1) % PHOTOS.length; return mImageCache.get(idx); } + @Override public ImageData naturalPrevious(ImageData current) { int idx = Integer.valueOf(current.id); idx = (PHOTOS.length + idx - 1) % PHOTOS.length; return mImageCache.get(idx); } + + @Override + protected void donePaging(ImageData current) { + } } |