Loading services/core/java/com/android/server/display/DisplayManagerShellCommand.java +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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); Loading Loading
services/core/java/com/android/server/display/DisplayManagerShellCommand.java +1 −2 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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); Loading