From 1c714db4d00f1ebc4de53187ee6d4eb2a00776b6 Mon Sep 17 00:00:00 2001 From: Manu Cornet Date: Thu, 10 Nov 2016 20:29:02 -0800 Subject: [PATCH] Allow fallthrough taps on Recents background to go Home In some cases the recents view isn't entirely occupied by task views. Taps on the empty space should take the user home, which was mostly supported except for this small missing part. Bug: 32101881 Test: Locally on Ryu device. Change-Id: I264202397f7408608aa444a421765715fb1e74ba --- .../com/android/systemui/recents/grid/RecentsGridActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java b/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java index 9ed492421f181..2c874bf9a39fa 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recents/grid/RecentsGridActivity.java @@ -302,6 +302,9 @@ public class RecentsGridActivity extends Activity implements ViewTreeObserver.On dismissRecentsToLaunchTargetTaskOrHome(); } else if (event.triggeredFromHomeKey) { dismissRecentsToHome(); + } else { + // Fall through tap on the background view but not on any of the tasks. + dismissRecentsToHome(); } }