mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Quick launch v2.
Set auto-append text in selected text mode. Clicking enter key launches the app. Delete the selected text to remove auto-append text and highlight. Clicking enter key sends raw query to search. Test: manual Bug: 210661150 Change-Id: Iee8e716b81a2dde64e60462fd33d4a6eb4abcf01
This commit is contained in:
@@ -84,7 +84,10 @@ public class AllAppsSearchBarController
|
||||
mTextConversions = extractTextConversions(s);
|
||||
}
|
||||
|
||||
private static String[] extractTextConversions(CharSequence text) {
|
||||
/**
|
||||
* Extract text conversions from composing text and send them for search.
|
||||
*/
|
||||
public static String[] extractTextConversions(CharSequence text) {
|
||||
if (text instanceof SpannableStringBuilder) {
|
||||
SpannableStringBuilder spanned = (SpannableStringBuilder) text;
|
||||
SuggestionSpan[] suggestionSpans =
|
||||
|
||||
Reference in New Issue
Block a user