@Override protected void onStop() { if (DBG) Log.d(TAG, "onStop()"); if (!mTookAction) { // TODO: This gets logged when starting other activities, e.g. by opening the search // settings, or clicking a notification in the status bar. // TODO we should log both sets of suggestions in 2-pane mode getLogger().logExit(getCurrentSuggestions(), getQuery().length()); } // Close all open suggestion cursors. The query will be redone in onResume() // if we come back to this activity. mSearchActivityView.clearSuggestions(); getQsbApplication().getShortcutRefresher().reset(); mSearchActivityView.onStop(); super.onStop(); }