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

Commit 2ff3e406 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Setting flag for auto confirm feature to always return true" into...

Merge "Setting flag for auto confirm feature to always return true" into udc-dev am: c638a2df am: cf66426d am: 0c23ea5d am: c51c15a3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23288037



Change-Id: Ia888037247f4d3c971fec66c14c3dc10daeb0003
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 80f7b66d c51c15a3
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ import android.os.SystemClock;
import android.os.UserHandle;
import android.os.UserManager;
import android.os.storage.StorageManager;
import android.provider.DeviceConfig;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
@@ -705,15 +704,13 @@ public class LockPatternUtils {
    }

    /**
     * Whether the auto pin feature logic is available or not.
     * @return true, if deviceConfig flag is set to true or the flag is not propagated and
     * defaultValue is true.
     * Whether the auto pin feature is available or not.
     * @return true. This method is always returning true due to feature flags not working
     * properly (b/282246482). Ideally, this should check if deviceConfig flag is set to true
     * and then return the appropriate value.
     */
    public static boolean isAutoPinConfirmFeatureAvailable() {
        return DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_AUTO_PIN_CONFIRMATION,
                FLAG_ENABLE_AUTO_PIN_CONFIRMATION,
                /* defaultValue= */ true);
        return true;
    }

    /** Returns if the given quality maps to an alphabetic password */