Remove Print Settings if the device if not supporting Printing
- remove the Print tile if the device does not have support for
Printing
Change-Id: Ia484eac6202324ed2b92c1c2f6162ed867b2619d
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java
index 2b580e4..60b1184 100644
--- a/src/com/android/settings/SettingsActivity.java
+++ b/src/com/android/settings/SettingsActivity.java
@@ -1069,6 +1069,12 @@
category.removeTile(n);
}
}
+ } else if (id == R.id.print_settings) {
+ boolean hasPrintingSupport = getPackageManager().hasSystemFeature(
+ PackageManager.FEATURE_PRINTING);
+ if (!hasPrintingSupport) {
+ category.removeTile(n);
+ }
} else if (id == R.id.development_settings) {
if (!showDev || um.hasUserRestriction(
UserManager.DISALLOW_DEBUGGING_FEATURES)) {