Hide tap to wake on devices that don't support it
Bug: 21650579 Change-Id: I3fbcccc80b5773c74d8398f1d23b4762a5bf54ed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user