summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-09-25 15:46:33 -0700
committerJohn Hoford <hoford@google.com>2013-09-25 15:47:26 -0700
commitef3cc52f473f15534f00b61b55b53e93931fef97 (patch)
tree5899aa56fac7bcaa2d3a5cee94976bac38b462bc /src/com/android/gallery3d/ui
parentc0b8a86ec7cb9b54053ca5cb38716a73d1ba171c (diff)
downloadandroid_packages_apps_Gallery2-ef3cc52f473f15534f00b61b55b53e93931fef97.tar.gz
android_packages_apps_Gallery2-ef3cc52f473f15534f00b61b55b53e93931fef97.tar.bz2
android_packages_apps_Gallery2-ef3cc52f473f15534f00b61b55b53e93931fef97.zip
disable print on older system.
Change-Id: I003aa965c885e6c7f65ade51b024bad400e8e458
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/MenuExecutor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/MenuExecutor.java b/src/com/android/gallery3d/ui/MenuExecutor.java
index 48cbe73e1..cbf9a8774 100644
--- a/src/com/android/gallery3d/ui/MenuExecutor.java
+++ b/src/com/android/gallery3d/ui/MenuExecutor.java
@@ -39,6 +39,7 @@ import com.android.gallery3d.data.Path;
import com.android.gallery3d.filtershow.crop.CropActivity;
import com.android.gallery3d.util.Future;
import com.android.gallery3d.util.GalleryUtils;
+import com.android.gallery3d.util.PrintJob;
import com.android.gallery3d.util.ThreadPool.Job;
import com.android.gallery3d.util.ThreadPool.JobContext;
@@ -178,6 +179,7 @@ public class MenuExecutor {
boolean supportEdit = (supported & MediaObject.SUPPORT_EDIT) != 0;
boolean supportInfo = (supported & MediaObject.SUPPORT_INFO) != 0;
boolean supportPrint = (supported & MediaObject.SUPPORT_PRINT) != 0;
+ supportPrint &= PrintJob.systemSupportsPrint();
setMenuItemVisible(menu, R.id.action_delete, supportDelete);
setMenuItemVisible(menu, R.id.action_rotate_ccw, supportRotate);