summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/SlideshowDataAdapter.java
diff options
context:
space:
mode:
authorAhbong Chang <cwahbong@google.com>2012-07-30 11:34:13 +0800
committerAhbong Chang <cwahbong@google.com>2012-07-30 11:42:01 +0800
commit813ac7496e93faa2cf0f2763df421a146d38fc11 (patch)
treef4a1064166c83f8560cdf5eaeb18a4107fd344a5 /src/com/android/gallery3d/app/SlideshowDataAdapter.java
parentdbc472eb08c19e78811823f8b83e59c3aeacc6d0 (diff)
downloadandroid_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.tar.gz
android_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.tar.bz2
android_packages_apps_Snap-813ac7496e93faa2cf0f2763df421a146d38fc11.zip
Code clean up.
Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
Diffstat (limited to 'src/com/android/gallery3d/app/SlideshowDataAdapter.java')
-rw-r--r--src/com/android/gallery3d/app/SlideshowDataAdapter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/SlideshowDataAdapter.java b/src/com/android/gallery3d/app/SlideshowDataAdapter.java
index 7c934ee3b..7a0fba5fb 100644
--- a/src/com/android/gallery3d/app/SlideshowDataAdapter.java
+++ b/src/com/android/gallery3d/app/SlideshowDataAdapter.java
@@ -92,6 +92,7 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
}
private class ReloadTask implements Job<Void> {
+ @Override
public Void run(JobContext jc) {
while (true) {
synchronized (SlideshowDataAdapter.this) {
@@ -145,6 +146,7 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
}
private class SourceListener implements ContentListener {
+ @Override
public void onContentDirty() {
synchronized (SlideshowDataAdapter.this) {
mNeedReload.set(true);
@@ -168,8 +170,10 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
return mImageQueue.removeFirst();
}
+ @Override
public Future<Slide> nextSlide(FutureListener<Slide> listener) {
return mThreadPool.submit(new Job<Slide>() {
+ @Override
public Slide run(JobContext jc) {
jc.setMode(ThreadPool.MODE_NONE);
return innerNextBitmap();
@@ -177,6 +181,7 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
}, listener);
}
+ @Override
public void pause() {
synchronized (this) {
mIsActive = false;
@@ -188,6 +193,7 @@ public class SlideshowDataAdapter implements SlideshowPage.Model {
mReloadTask = null;
}
+ @Override
public synchronized void resume() {
mIsActive = true;
mSource.addContentListener(mSourceListener);