Merge "Remove Print Settings if the device if not supporting Printing"
This commit is contained in:
committed by
Android (Google) Code Review
commit
93abe0a11f
@@ -1069,6 +1069,12 @@ public class SettingsActivity extends Activity
|
||||
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)) {
|
||||
|
Reference in New Issue
Block a user