private void adaptHelperText ( final float score ) { if ( ! helperTexts . isEmpty ( ) ) { CharSequence helperText = getHelperText ( score ) ; if ( helperText != null ) { int color = getHelperTextColor ( score ) ; helperText = "<font color=\"" + color + "\">" + helperText + "</font>" ; String prefix = getPasswordVerificationPrefix ( ) ; if ( prefix != null ) { prefix = "<font color=\"" + regularHelperTextColor + "\">" + prefix + ": </font>" ; } else { prefix = "" ; } setHelperText ( Html . fromHtml ( prefix + helperText ) ) ; } else { setHelperText ( regularHelperText ) ; } } else { setHelperText ( regularHelperText ) ; } }
Adapts the helper text depending on a specific password strength .