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

This change checks for the window focus before taking action. If the Home's window
does not have focus, then the gestures pad is not shown.
This commit is contained in:
Romain Guy 2009-06-16 13:25:29 -07:00
parent 91a9c9636f
commit e3895ae921
1 changed files with 2 additions and 1 deletions

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) != if ((intent.getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) !=
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 searchManager =
(SearchManager) getSystemService(Context.SEARCH_SERVICE); (SearchManager) getSystemService(Context.SEARCH_SERVICE);
if (!searchManager.isVisible()) { if (!searchManager.isVisible()) {