mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Ensuring that AllAppsGridAdapter is public.
- Also show the search action when searching all apps Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
android:gravity="fill_horizontal|center_vertical"
|
||||
android:hint="@string/all_apps_search_bar_hint"
|
||||
android:inputType="text|textNoSuggestions|textCapWords"
|
||||
android:imeOptions="actionDone|flagNoExtractUi"
|
||||
android:imeOptions="actionSearch|flagNoExtractUi"
|
||||
android:maxLines="1"
|
||||
android:paddingLeft="8dp"
|
||||
android:scrollHorizontally="true"
|
||||
|
||||
@@ -45,7 +45,7 @@ import java.util.List;
|
||||
/**
|
||||
* The grid view adapter of all the apps.
|
||||
*/
|
||||
class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.ViewHolder> {
|
||||
public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter.ViewHolder> {
|
||||
|
||||
public static final String TAG = "AppsGridAdapter";
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
@@ -166,7 +166,7 @@ final class DefaultAppSearchController extends AllAppsSearchBarController
|
||||
return false;
|
||||
}
|
||||
// Skip if it's not the right action
|
||||
if (actionId != EditorInfo.IME_ACTION_DONE) {
|
||||
if (actionId != EditorInfo.IME_ACTION_SEARCH) {
|
||||
return false;
|
||||
}
|
||||
// Skip if there isn't exactly one item
|
||||
|
||||
Reference in New Issue
Block a user