diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android/VisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/VisualElementRenderer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs index 3c05fae4..120cc972 100644 --- a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs +++ b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs @@ -370,7 +370,7 @@ namespace Xamarin.Forms.Platform.Android if (_defaultContentDescription == null) _defaultContentDescription = ContentDescription; - var elemValue = string.Join(" ", (string)Element.GetValue(AutomationProperties.NameProperty), (string)Element.GetValue(AutomationProperties.HelpTextProperty)); + var elemValue = FastRenderers.AutomationPropertiesProvider.ConcatenateNameAndHelpText(Element); if (!string.IsNullOrWhiteSpace(elemValue)) ContentDescription = elemValue; @@ -405,7 +405,7 @@ namespace Xamarin.Forms.Platform.Android if (_defaultHint == null) _defaultHint = textView.Hint; - var elemValue = string.Join((String.IsNullOrWhiteSpace((string)(Element.GetValue(AutomationProperties.NameProperty))) || String.IsNullOrWhiteSpace((string)(Element.GetValue(AutomationProperties.HelpTextProperty)))) ? "" : ". ", (string)Element.GetValue(AutomationProperties.NameProperty), (string)Element.GetValue(AutomationProperties.HelpTextProperty)); + var elemValue = FastRenderers.AutomationPropertiesProvider.ConcatenateNameAndHelpText(Element); if (!string.IsNullOrWhiteSpace(elemValue)) textView.Hint = elemValue; |