Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df3012bc authored by Winson's avatar Winson
Browse files

Enforce single deletion per key press.

Bug: 26467824
Change-Id: I88542cfbd52a4a60bc8319390f2688fac5f2c754
parent 4b057c67
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -569,6 +569,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
            }
            case KeyEvent.KEYCODE_DEL:
            case KeyEvent.KEYCODE_FORWARD_DEL: {
                if (event.getRepeatCount() <= 0) {
                    EventBus.getDefault().send(new DismissFocusedTaskViewEvent());

                    // Keep track of deletions by keyboard
@@ -576,6 +577,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
                            Constants.Metrics.DismissSourceKeyboard);
                    return true;
                }
            }
            default:
                break;
        }