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

Commit 31be8428 authored by Peter Schiller's avatar Peter Schiller Committed by Android (Google) Code Review
Browse files

Merge "Simplified search focus logic" into ub-launcher3-calgary

parents 2359a680 dcb82592
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import android.widget.LinearLayout;

@@ -335,12 +334,8 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
        final OnClickListener searchFocusListener = new OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!mSearchInput.isFocused()) {
                    mSearchInput.requestFocus();
                    final InputMethodManager imm =
                            (InputMethodManager)getContext().getSystemService(
                                    Context.INPUT_METHOD_SERVICE);
                    imm.showSoftInput(mSearchInput, 0);
                if (!mSearchBarController.isSearchFieldFocused()) {
                    mSearchBarController.focusSearchField();
                }
            }
        };