Merge "Add @RequiresFeature to setPasswordHistoryLength."
This commit is contained in:
committed by
Android (Google) Code Review
commit
dbde8ac29b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user