зеркало из https://github.com/DeGsoft/maui-linux.git
Fixed issue where errant "." were appearing on droid controls due to hints. (#801)
This commit is contained in:
Родитель
917d27e079
Коммит
2b92142ab2
|
@ -223,7 +223,7 @@ namespace Xamarin.Forms.Platform.Android
|
|||
if (_defaultHint == null)
|
||||
_defaultHint = textView.Hint;
|
||||
|
||||
var elemValue = string.Join(". ", (string)Element.GetValue(Accessibility.NameProperty), (string)Element.GetValue(Accessibility.HintProperty));
|
||||
var elemValue = string.Join((String.IsNullOrWhiteSpace((string)(Element.GetValue(Accessibility.NameProperty))) || String.IsNullOrWhiteSpace((string)(Element.GetValue(Accessibility.HintProperty)))) ? "" : ". ", (string)Element.GetValue(Accessibility.NameProperty), (string)Element.GetValue(Accessibility.HintProperty));
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(elemValue))
|
||||
textView.Hint = elemValue;
|
||||
|
|
|
@ -388,7 +388,7 @@ namespace Xamarin.Forms.Platform.Android
|
|||
if (_defaultHint == null)
|
||||
_defaultHint = textView.Hint;
|
||||
|
||||
var elemValue = string.Join(". ", (string)Element.GetValue(Accessibility.NameProperty), (string)Element.GetValue(Accessibility.HintProperty));
|
||||
var elemValue = string.Join((String.IsNullOrWhiteSpace((string)(Element.GetValue(Accessibility.NameProperty))) || String.IsNullOrWhiteSpace((string)(Element.GetValue(Accessibility.HintProperty)))) ? "" : ". ", (string)Element.GetValue(Accessibility.NameProperty), (string)Element.GetValue(Accessibility.HintProperty));
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(elemValue))
|
||||
textView.Hint = elemValue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче