mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Add a no recent tasks message to the keyboard quick switch view" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9f04842b5
@@ -129,8 +129,8 @@ public final class KeyboardQuickSwitchController implements
|
||||
*/
|
||||
int launchFocusedTask() {
|
||||
// Return -1 so that the RecentsView is not incorrectly opened when the user closes the
|
||||
// quick switch view by tapping the screen.
|
||||
return mQuickSwitchViewController == null
|
||||
// quick switch view by tapping the screen or when there are no recent tasks.
|
||||
return mQuickSwitchViewController == null || mTasks.isEmpty()
|
||||
? -1 : mQuickSwitchViewController.launchFocusedTask();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user