Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eea9fa40 authored by Winson's avatar Winson
Browse files

Ensuring that AllAppsGridAdapter is public.

- Also show the search action when searching all apps

Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
parent 99eceebf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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