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:
commit
b0d35c42eb
|
@ -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