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

Commit 02077c4b authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 2acbec49: Merge change 7941 into donut

Merge commit '2acbec49'

* commit '2acbec49':
  add comment to illuminate why we only dismiss the dialog when launching an intent for in app search
parents e6327ea3 2acbec49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1247,6 +1247,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
        Log.d(LOG_TAG, "launching " + intent);
        getContext().startActivity(intent);

        // in global search mode, SearchDialogWrapper#performActivityResuming will handle hiding
        // the dialog when the next activity starts, but for in-app search, we still need to
        // dismiss the dialog.
        if (!mGlobalSearchMode) {
            dismiss();
        }