diff options
author | Ahbong Chang <cwahbong@google.com> | 2012-07-30 11:34:13 +0800 |
---|---|---|
committer | Ahbong Chang <cwahbong@google.com> | 2012-07-30 11:42:01 +0800 |
commit | 813ac7496e93faa2cf0f2763df421a146d38fc11 (patch) | |
tree | f4a1064166c83f8560cdf5eaeb18a4107fd344a5 /src/com/android/gallery3d/app/GalleryAppImpl.java | |
parent | dbc472eb08c19e78811823f8b83e59c3aeacc6d0 (diff) | |
download | android_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.java | 5 |
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); |