diff options
author | Jason Monk <jmonk@google.com> | 2015-06-08 09:11:48 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-06-10 16:16:10 -0400 |
commit | 181e0e9ec0142e5dd69e8063773ab87d192601a6 (patch) | |
tree | 24c06495e0c588b9908ebd657fd9485f8a2cfe6f /src/com/android/settings/DisplaySettings.java | |
parent | f8f9088a6def1186038c35ec3319113262825f20 (diff) | |
download | packages_apps_Settings-181e0e9ec0142e5dd69e8063773ab87d192601a6.tar.gz packages_apps_Settings-181e0e9ec0142e5dd69e8063773ab87d192601a6.tar.bz2 packages_apps_Settings-181e0e9ec0142e5dd69e8063773ab87d192601a6.zip |
Hide tap to wake on devices that don't support it
Bug: 21650579
Change-Id: I3fbcccc80b5773c74d8398f1d23b4762a5bf54ed
Diffstat (limited to 'src/com/android/settings/DisplaySettings.java')
-rw-r--r-- | src/com/android/settings/DisplaySettings.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java index 271c99341..eef3c6b20 100644 --- a/src/com/android/settings/DisplaySettings.java +++ b/src/com/android/settings/DisplaySettings.java @@ -490,6 +490,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements if (!RotationPolicy.isRotationLockToggleVisible(context)) { result.add(KEY_AUTO_ROTATE); } + if (!isTapToWakeAvailable(context.getResources())) { + result.add(KEY_TAP_TO_WAKE); + } return result; } }; |