Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbde8ac2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add @RequiresFeature to setPasswordHistoryLength."

parents 6cdb83f3 aa625a7c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {