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:
parent
529100b752
commit
94406848f6
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue