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

Commit aa625a7c authored by Lenka Trochtova's avatar Lenka Trochtova
Browse files

Add @RequiresFeature to setPasswordHistoryLength.

Add the @RequiresFeature(FEATURE_SECURE_LOCK_SCREEN) annotation
to setPasswordHistoryLength for the sake of consistency -
the other password history APIs already have the annotation.

Bug: 123270501
Bug: 111072170
Bug: 111071972
Test: make

Change-Id: I0a321d6bb1b8fb2a4c7ccebfd7c46b2dc9ad8956
parent 39e2a439
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 {