mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Return to home when overview command fails.
Returning a runnable list that doesn't get run later causes the overview command to be added to the pending command queue, but never gets removed. This causes following overview (and home on tablets) commands not to respond. Test: forcefully caused the error condition programmatically; checked the queue is cleared and the user is sent home. Fixes: 255851262 Change-Id: I9d2f54960c54963b1e7480a597d05911201c152b
This commit is contained in:
@@ -116,7 +116,7 @@ public class OverviewCommandHelper {
|
||||
*/
|
||||
@BinderThread
|
||||
public void addCommand(int type) {
|
||||
if (mPendingCommands.size() > MAX_QUEUE_SIZE) {
|
||||
if (mPendingCommands.size() >= MAX_QUEUE_SIZE) {
|
||||
return;
|
||||
}
|
||||
CommandInfo cmd = new CommandInfo(type);
|
||||
|
||||
Reference in New Issue
Block a user