Remove unnecessary trim (flutter/engine#4616)
... which caused trouble for a11y "select all".
This commit is contained in:
committed by
GitHub
parent
ca4ddfcb50
commit
90723f13fd
@@ -907,7 +907,7 @@ class AccessibilityBridge extends AccessibilityNodeProvider implements BasicMess
|
||||
StringBuilder sb = new StringBuilder();
|
||||
String[] array = { value, label, hint };
|
||||
for (String word: array) {
|
||||
if (word != null && (word = word.trim()).length() > 0) {
|
||||
if (word != null && word.length() > 0) {
|
||||
if (sb.length() > 0)
|
||||
sb.append(", ");
|
||||
sb.append(word);
|
||||
|
||||
Reference in New Issue
Block a user