diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/EditTimelinesFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/EditTimelinesFragment.java index 662ddc492..3debf9536 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/EditTimelinesFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/EditTimelinesFragment.java @@ -239,16 +239,21 @@ public class EditTimelinesFragment extends MastodonRecyclerFragment tags) { if (tags == null || tags.isEmpty()) return false; - editText.setText(String.join(",", tags)); - editText.chipifyAllUnterminatedTokens(); + editText.setText(tags); + editText.chipifyAllUnterminatedTokens(); return true; } private NachoTextView prepareChipTextView(NachoTextView nacho) { - nacho.addChipTerminator(',', BEHAVIOR_CHIPIFY_ALL); - nacho.addChipTerminator('\n', BEHAVIOR_CHIPIFY_ALL); - nacho.addChipTerminator(' ', BEHAVIOR_CHIPIFY_ALL); - nacho.addChipTerminator(';', BEHAVIOR_CHIPIFY_ALL); + //I’ll Be Back + nacho.setChipTerminators( + Map.of( + ',', BEHAVIOR_CHIPIFY_ALL, + '\n', BEHAVIOR_CHIPIFY_ALL, + ' ', BEHAVIOR_CHIPIFY_ALL, + ';', BEHAVIOR_CHIPIFY_ALL + ) + ); nacho.enableEditChipOnTouch(true, true); nacho.setOnFocusChangeListener((v, hasFocus) -> nacho.chipifyAllUnterminatedTokens()); return nacho;