summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/Wallpaper.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-06-28 11:10:02 +0800
committerOwen Lin <owenlin@google.com>2012-06-28 18:35:03 +0800
commit3a45725ad42324cd2db172fb082fe80772d94d3f (patch)
tree45d0903d73b2196ec33e720a332dac0d56700207 /src/com/android/gallery3d/app/Wallpaper.java
parent30aa92093126f00b46543ae3b5d1035a3270f240 (diff)
downloadandroid_packages_apps_Gallery2-3a45725ad42324cd2db172fb082fe80772d94d3f.tar.gz
android_packages_apps_Gallery2-3a45725ad42324cd2db172fb082fe80772d94d3f.tar.bz2
android_packages_apps_Gallery2-3a45725ad42324cd2db172fb082fe80772d94d3f.zip
Don't use Build.VERSION_CODES.
Since they won't be available on old platform. bug: 6752318 Change-Id: I55a9e83dbf05b93c83c68cb31f6edcbc29793283
Diffstat (limited to 'src/com/android/gallery3d/app/Wallpaper.java')
-rw-r--r--src/com/android/gallery3d/app/Wallpaper.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/Wallpaper.java b/src/com/android/gallery3d/app/Wallpaper.java
index d64eecdcf..1ece66c49 100644
--- a/src/com/android/gallery3d/app/Wallpaper.java
+++ b/src/com/android/gallery3d/app/Wallpaper.java
@@ -25,6 +25,8 @@ import android.os.Build;
import android.os.Bundle;
import android.view.Display;
+import com.android.gallery3d.common.ApiHelper;
+
/**
* Wallpaper picker for the gallery application. This just redirects to the
* standard pick action.
@@ -61,10 +63,10 @@ public class Wallpaper extends Activity {
}
@SuppressWarnings("deprecation")
- @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
+ @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB_MR2)
private Point getDefaultDisplaySize(Point size) {
Display d = getWindowManager().getDefaultDisplay();
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
+ if (Build.VERSION.SDK_INT >= ApiHelper.VERSION_CODES.HONEYCOMB_MR2) {
d.getSize(size);
} else {
size.set(d.getWidth(), d.getHeight());