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.
This commit is contained in:
Romain Guy 2009-06-17 16:18:58 -07:00
parent 529100b752
commit 94406848f6
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();
}