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

Commit c478deb4 authored by Ned Burns's avatar Ned Burns
Browse files

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
parent 78cf27e7
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -67,14 +67,12 @@ 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);

        if (args == null || args.length == 0 || args[0].equals("--config")) {
            dumpConfig(pw);
        }
    }

    static void dumpServices(
            SystemUI[] services, FileDescriptor fd, PrintWriter pw, String[] args) {