Remove obsolete comment about isVisiblePatternEnabled()

The comment in LockPatternUtils#isVisiblePatternEnabled() was only
needed because there were two sources of truth for the default value.
Now that there is only one source of truth, it is not needed.

Bug: 270013005
Change-Id: Ia531f84bcedc957393f93222679efae848a82822
Merged-In: Ia531f84bcedc957393f93222679efae848a82822
(cherry picked from commit f62c4d38b3)
This commit is contained in:
Eric Biggers
2023-05-05 18:37:05 +00:00
parent 7a6cfcc3af
commit d3252e4e76

View File

@@ -986,9 +986,6 @@ public class LockPatternUtils {
*/ */
@UnsupportedAppUsage @UnsupportedAppUsage
public boolean isVisiblePatternEnabled(int userId) { public boolean isVisiblePatternEnabled(int userId) {
// Default to true, since this gets explicitly set to true when a pattern is first set
// anyway, which makes true the user-visible default. The low-level default should be the
// same, in order for FRP credential verification to get the same default.
return getBoolean(Settings.Secure.LOCK_PATTERN_VISIBLE, true, userId); return getBoolean(Settings.Secure.LOCK_PATTERN_VISIBLE, true, userId);
} }