@@ -62,7 +62,7 @@ case class SetTeamPasswordFragment() extends CreateTeamFragment {
6262 // We need to adjust the behaviour of the error text view: It should always be visible,
6363 // but it will become red when validation fails.
6464 inputField.errorText.setGravity(Gravity .START )
65- inputField.errorText.setTextColor(context .getColor(R .color.teams_placeholder_text))
65+ inputField.errorText.setTextColor(ContextUtils .getColor(R .color.teams_placeholder_text))
6666 inputField.setShouldDisableOnClick(false )
6767 inputField.setShouldClearErrorOnClick(false )
6868 inputField.setShouldClearErrorOnTyping(false )
@@ -72,15 +72,15 @@ case class SetTeamPasswordFragment() extends CreateTeamFragment {
7272
7373 inputField.editText.addTextListener { text =>
7474 createTeamController.password = text
75- inputField.errorText.setTextColor(context .getColor(R .color.teams_placeholder_text))
75+ inputField.errorText.setTextColor(ContextUtils .getColor(R .color.teams_placeholder_text))
7676 }
7777
7878 inputField.editText.requestFocus()
7979 KeyboardUtils .showKeyboard(context.asInstanceOf [Activity ])
8080
8181 inputField.setOnClick( text =>
8282 if (! validator.isValidPassword(text)) {
83- inputField.errorText.setTextColor(context .getColor(R .color.teams_error_red))
83+ inputField.errorText.setTextColor(ContextUtils .getColor(R .color.teams_error_red))
8484 Future .successful(Some (getString(R .string.password_policy_hint, passwordMinLength)))
8585 } else {
8686 AppEntryDialogs .showTermsAndConditions(context).flatMap {
0 commit comments