This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val matches = (utm.friends ::: utm.followers).map(u => NameAndScreenName(u.name, u.screenName)).filter(_.matches(searchText.text)).sort((e1, e2) => (e1 compareTo e2) < 0).removeDuplicates | |
(matches.length match { | |
case 0 => "No matches were found" | |
case 1 => "Select the following item to insert a @screenname" | |
case _ => "Select one of these " + matches.length + " items to insert a @screenname" | |
}) :: matches |