Add flag to hide disabled keyguard options.

Normally keyguard options are disabled by things like credential
storage and device admins, so we show the reason in ChooseLockGeneric.

However, in the case of fingerprint we want to limit the scope
to just those options that have security (pin,password,pattern).

Bug 19592835

Change-Id: I6832ff692bad538adeec2f2575fca4f8f04f40cf
This commit is contained in:
Jim Miller
2015-03-11 20:17:39 -07:00
parent fe08c38366
commit 3fb2fb8ac3
3 changed files with 14 additions and 11 deletions

View File

@@ -110,7 +110,7 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric
* @param quality the requested quality.
*/
@Override
protected void disableUnusablePreferences(final int quality) {
protected void disableUnusablePreferences(final int quality, boolean hideDisabled) {
// At this part of the flow, the user has already indicated they want to add a pin,
// pattern or password, so don't show "None" or "Slide". We disable them here and set
// the HIDE_DISABLED flag to true to hide them. This only happens for setup wizard.