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
This commit is contained in:
Manu Cornet
2016-11-10 20:29:02 -08:00
parent 3713151425
commit 1c714db4d0

View File

@@ -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();
}
}