summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoPage.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-07-03 12:49:45 +0800
committerChih-Chung Chang <chihchung@google.com>2012-07-03 18:31:13 +0800
commit4ebfbc28bc94084b27c87914450699bc5c474d1a (patch)
treef394d8cb6fb196710740060888bf2e63cbd7dab9 /src/com/android/gallery3d/app/PhotoPage.java
parent7aac26484af3d40df81e1d08c673bd925856a7fa (diff)
downloadandroid_packages_apps_Snap-4ebfbc28bc94084b27c87914450699bc5c474d1a.tar.gz
android_packages_apps_Snap-4ebfbc28bc94084b27c87914450699bc5c474d1a.tar.bz2
android_packages_apps_Snap-4ebfbc28bc94084b27c87914450699bc5c474d1a.zip
Remove dependencies on APIs only exist on newer platforms.
Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 22b01637e..3b6a7704b 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -321,10 +321,9 @@ public class PhotoPage extends ActivityState implements
}
}
- @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
+ @TargetApi(ApiHelper.VERSION_CODES.JELLY_BEAN)
private void setNfcBeamPushUris(Uri[] uris) {
- if (mNfcAdapter != null &&
- Build.VERSION.SDK_INT >= ApiHelper.VERSION_CODES.JELLY_BEAN) {
+ if (mNfcAdapter != null && ApiHelper.HAS_SET_BEAM_PUSH_URIS) {
mNfcAdapter.setBeamPushUris(uris, (Activity)mActivity);
}
}