Merge "Don't dump SysUI config if other args are provided"

This commit is contained in:
TreeHugger Robot
2019-10-30 02:46:42 +00:00
committed by Android (Google) Code Review

View File

@@ -67,13 +67,11 @@ public class SystemUIService extends Service {
@Override
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
if (args != null && args.length > 0 && args[0].equals("--config")) {
dumpConfig(pw);
return;
}
dumpServices(((SystemUIApplication) getApplication()).getServices(), fd, pw, args);
dumpConfig(pw);
if (args == null || args.length == 0 || args[0].equals("--config")) {
dumpConfig(pw);
}
}
static void dumpServices(