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

Commit 6b5d003f authored by Nikolai Gladkov's avatar Nikolai Gladkov Committed by Automerger Merge Worker
Browse files

Merge "Add a command to clear recent apps" into tm-qpr-dev am: 541595b9 am: 7967407c

parents c4d0c7e5 7967407c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -257,6 +257,8 @@ final class ActivityManagerShellCommand extends ShellCommand {
                    return runForceStop(pw);
                case "stop-app":
                    return runStopApp(pw);
                case "clear-recent-apps":
                    return runClearRecentApps(pw);
                case "fgs-notification-rate-limit":
                    return runFgsNotificationRateLimit(pw);
                case "crash":
@@ -1239,6 +1241,11 @@ final class ActivityManagerShellCommand extends ShellCommand {
        return 0;
    }

    int runClearRecentApps(PrintWriter pw) throws RemoteException {
        mTaskInterface.removeAllVisibleRecentTasks();
        return 0;
    }

    int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException {
        final String toggleValue = getNextArgRequired();
        final boolean enable;