mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Revert "Add entry and cursor location in GetSuggestionRequest"
Revert submission 17128079-suggestionentry Reason for revert: test monitor determined it broke tests: b/223859070 Reverted Changes: I838896e2f:Add entry and cursor location in GetSuggestionRequ... Ic9f5dd35b:Add cursorLocation and entry to GetSuggestRequest Change-Id: I8a15f61c5ddb37b26d3e06de25f0d5b5b5c89abc
This commit is contained in:
@@ -100,14 +100,12 @@ public class AllAppsSearchBarController
|
||||
@Override
|
||||
public void afterTextChanged(final Editable s) {
|
||||
mQuery = s.toString();
|
||||
mInput.getSelectionStart();
|
||||
if (mQuery.isEmpty()) {
|
||||
mSearchAlgorithm.cancel(true);
|
||||
mCallback.clearSearchResult();
|
||||
} else {
|
||||
mSearchAlgorithm.cancel(false);
|
||||
mSearchAlgorithm.doSearch(mQuery, mInput.getSelectionStart(), mTextConversions,
|
||||
mCallback);
|
||||
mSearchAlgorithm.doSearch(mQuery, mTextConversions, mCallback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +115,7 @@ public class AllAppsSearchBarController
|
||||
}
|
||||
// If play store continues auto updating an app, we want to show partial result.
|
||||
mSearchAlgorithm.cancel(false);
|
||||
mSearchAlgorithm.doSearch(mQuery, mInput.getSelectionStart(), mCallback);
|
||||
mSearchAlgorithm.doSearch(mQuery, mCallback);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user