mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Add a no recent tasks message to the keyboard quick switch view
Flag: ENABLE_KEYBOARD_QUICK_SWITCH Fixes: 280652620 Test: launched the keyboard quick switch with 0, <=6 and >6 tasks launched Change-Id: I560707645b83b79ba2203460e62e4c540f5da421
This commit is contained in:
@@ -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