public static void UpdateMaxLength(this AppCompatEditText editText, int maxLength)
        {
            editText.SetLengthFilter(maxLength);

            var newText = editText.Text.TrimToMaxLength(maxLength);

            if (editText.Text != newText)
            {
                editText.Text = newText;
            }
        }