Don't dump SysUI config if other args are provided

This was polluting the output of selective dump from
adb shell dumpsys activity service com.android.systemui/.SystemUIService dependency DumpController <tag>

Test: manual
Change-Id: Ifcfb97e3edf2005e16a1433862fe9094927c0761
This commit is contained in:
Ned Burns
2019-10-29 20:27:07 -04:00
parent 78cf27e7b6
commit c478deb466

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(