Ensuring that AllAppsGridAdapter is public.

- Also show the search action when searching all apps

Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
This commit is contained in:
Winson
2015-08-11 16:20:47 -07:00
parent 99eceebfaa
commit eea9fa4022
3 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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;

View File

@@ -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