am 94406848: Close the gestures pad when pressing Home. A regression was recently introduced when ignoring the Home key press when Home\'s window does not have focus.

Merge commit '94406848f62e6990fa169fc40672c752f8419cf2'

* commit '94406848f62e6990fa169fc40672c752f8419cf2':
  Close the gestures pad when pressing Home. A regression was recently introduced when
This commit is contained in:
Romain Guy 2009-06-17 21:49:14 -07:00 committed by The Android Open Source Project
commit b0d35c42eb
1 changed files with 4 additions and 1 deletions

View File

@ -870,9 +870,12 @@ public final class Launcher extends Activity implements View.OnClickListener, On
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) {
if (mGesturesPanel != null && mDragLayer.getWindowVisibility() == View.VISIBLE &&
mDragLayer.hasWindowFocus()) {
(mDragLayer.hasWindowFocus() ||
(mGesturesWindow != null && mGesturesWindow.isShowing()))) {
SearchManager searchManager =
(SearchManager) getSystemService(Context.SEARCH_SERVICE);
if (!searchManager.isVisible()) {
onHomeKeyPressed();
}