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:
parent
91a9c9636f
commit
e3895ae921
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue