Merge "Hide tap to wake on devices that don't support it" into mnc-dev

This commit is contained in:
Jason Monk
2015-06-10 20:26:12 +00:00
committed by Android (Google) Code Review

View File

@@ -490,6 +490,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
if (!RotationPolicy.isRotationLockToggleVisible(context)) { if (!RotationPolicy.isRotationLockToggleVisible(context)) {
result.add(KEY_AUTO_ROTATE); result.add(KEY_AUTO_ROTATE);
} }
if (!isTapToWakeAvailable(context.getResources())) {
result.add(KEY_TAP_TO_WAKE);
}
return result; return result;
} }
}; };