summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/GalleryAppImpl.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/GalleryAppImpl.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/GalleryAppImpl.java')
-rw-r--r--src/com/android/gallery3d/app/GalleryAppImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/GalleryAppImpl.java b/src/com/android/gallery3d/app/GalleryAppImpl.java
index 852926bc7..f725ccf5a 100644
--- a/src/com/android/gallery3d/app/GalleryAppImpl.java
+++ b/src/com/android/gallery3d/app/GalleryAppImpl.java
@@ -49,10 +49,12 @@ public class GalleryAppImpl extends Application implements GalleryApp {
PicasaSource.initialize(this);
}
+ @Override
public Context getAndroidContext() {
return this;
}
+ @Override
public synchronized DataManager getDataManager() {
if (mDataManager == null) {
mDataManager = new DataManager(this);
@@ -61,6 +63,7 @@ public class GalleryAppImpl extends Application implements GalleryApp {
return mDataManager;
}
+ @Override
public ImageCacheService getImageCacheService() {
// This method may block on file I/O so a dedicated lock is needed here.
synchronized (mLock) {
@@ -71,6 +74,7 @@ public class GalleryAppImpl extends Application implements GalleryApp {
}
}
+ @Override
public synchronized ThreadPool getThreadPool() {
if (mThreadPool == null) {
mThreadPool = new ThreadPool();
@@ -78,6 +82,7 @@ public class GalleryAppImpl extends Application implements GalleryApp {
return mThreadPool;
}
+ @Override
public synchronized DownloadCache getDownloadCache() {
if (mDownloadCache == null) {
File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER);