Remove unnecessary trim (flutter/engine#4616)

... which caused trouble for a11y "select all".
This commit is contained in:
Michael Goderbauer
2018-01-29 18:12:29 -08:00
committed by GitHub
parent ca4ddfcb50
commit 90723f13fd

View File

@@ -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);