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

Commit ff86dd93 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[QL-v2] Add logging for quick launch." into tm-qpr-dev

parents c6bd4ad2 786bdce2
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -15,9 +15,6 @@
 */
package com.android.launcher3.allapps.search;

import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_QUICK_SEARCH_WITH_IME;

import android.text.Editable;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
@@ -125,10 +122,6 @@ public class AllAppsSearchBarController
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {

        if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) {
            mLauncher.getStatsLogManager().logger()
                    .log(actionId == EditorInfo.IME_ACTION_SEARCH
                            ? LAUNCHER_ALLAPPS_QUICK_SEARCH_WITH_IME
                            : LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME);
            // selectFocusedView should return SearchTargetEvent that is passed onto onClick
            return mLauncher.getAppsView().getMainAdapterProvider().launchHighlightedItem();
        }