Merge "Add @RequiresFeature to setPasswordHistoryLength."

This commit is contained in:
TreeHugger Robot
2019-01-31 15:01:39 +00:00
committed by Android (Google) Code Review

View File

@@ -3149,6 +3149,7 @@ public class DevicePolicyManager {
* @throws SecurityException if {@code admin} is not an active administrator or {@code admin}
* does not use {@link DeviceAdminInfo#USES_POLICY_LIMIT_PASSWORD}
*/
@RequiresFeature(PackageManager.FEATURE_SECURE_LOCK_SCREEN)
public void setPasswordHistoryLength(@NonNull ComponentName admin, int length) {
if (mService != null) {
try {