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

Commit c504ce1d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 57344c24 c478deb4
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) {