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

Commit d70a6e23 authored by Kriti Dang's avatar Kriti Dang
Browse files

Fixing issue in parsing arguments for setUserDisabledHdrTypes

Bug: 213397810
Test: atest MediaCapabilitiesTests
Change-Id: Ifb90ac0ef25db23f594dbebcaffa7aeec5ccee33
parent 9c74d734
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ class DisplayManagerShellCommand extends ShellCommand {
    }

    private int setUserDisabledHdrTypes() {
        final String[] userDisabledHdrTypesText = getAllArgs();
        String[] userDisabledHdrTypesText = peekRemainingArgs();
        if (userDisabledHdrTypesText == null) {
            getErrPrintWriter().println("Error: no userDisabledHdrTypes specified");
            return 1;
@@ -351,7 +351,6 @@ class DisplayManagerShellCommand extends ShellCommand {
            getErrPrintWriter().println("Error: invalid format of userDisabledHdrTypes");
            return 1;
        }

        final Context context = mService.getContext();
        final DisplayManager dm = context.getSystemService(DisplayManager.class);
        dm.setUserDisabledHdrTypes(userDisabledHdrTypes);