Minor improvements for list printing

This commit is contained in:
PaulStets 2018-02-26 15:24:47 +02:00
parent 1b9cc4ac98
commit 41f2cda8a2

View file

@ -10,6 +10,7 @@ import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.SwitchCompat; import android.support.v7.widget.SwitchCompat;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.text.Editable; import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MenuItem; import android.view.MenuItem;
@ -463,12 +464,7 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
} }
} }
} }
StringBuilder sb = new StringBuilder(); filterByName = TextUtils.join(" ", filters);
for (String s : filters) {
sb.append(s);
sb.append(" ");
}
filterByName = sb.toString();
} }
} }
if (filterByName.trim().length() > 0 && Algorithms.isEmpty(nameFilterText)) { if (filterByName.trim().length() > 0 && Algorithms.isEmpty(nameFilterText)) {