am e3895ae9: Fixes #1921372. Pressing Home with the window shade down would show gestures pad.

Merge commit 'e3895ae9212d8654af10983cbf62206ead02ec24'

* commit 'e3895ae9212d8654af10983cbf62206ead02ec24':
  Fixes #1921372. Pressing Home with the window shade down would show gestures pad.
This commit is contained in:
Romain Guy
2009-06-16 16:43:03 -07:00
committed by The Android Open Source Project
+2 -1
View File
@@ -869,7 +869,8 @@ public final class Launcher extends Activity implements View.OnClickListener, On
if ((intent.getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) !=
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) {
if (mGesturesPanel != null && mDragLayer.getWindowVisibility() == View.VISIBLE) {
if (mGesturesPanel != null && mDragLayer.getWindowVisibility() == View.VISIBLE &&
mDragLayer.hasWindowFocus()) {
SearchManager searchManager =
(SearchManager) getSystemService(Context.SEARCH_SERVICE);
if (!searchManager.isVisible()) {