Replace literal with constant variable

This commit is contained in:
Daniele Sparano 2023-06-29 10:25:41 +01:00 committed by microkatz
parent c7fe0662ce
commit fc61d96d5c

View File

@ -190,7 +190,7 @@ public class DebugTextViewHelper {
} }
private static String getBitdepthInfoString(int lumaBitdepth) { private static String getBitdepthInfoString(int lumaBitdepth) {
return lumaBitdepth != -1 ? " b:" + lumaBitdepth : ""; return lumaBitdepth != Format.NO_VALUE ? " b:" + lumaBitdepth : "";
} }
private static String getColorInfoString(@Nullable ColorInfo colorInfo) { private static String getColorInfoString(@Nullable ColorInfo colorInfo) {