Merge "Add a command to clear recent apps" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
541595b936
@@ -248,6 +248,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":
|
||||
@@ -1192,6 +1194,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;
|
||||
|
||||
Reference in New Issue
Block a user