HDR: Generalize Pixel 6 workaround to TP

PiperOrigin-RevId: 485366659
This commit is contained in:
huangdarwin 2022-11-01 18:09:01 +00:00 committed by microkatz
parent 136b8c57d9
commit a65ff85a98

View File

@ -293,8 +293,8 @@ import org.checkerframework.dataflow.qual.Pure;
}
private static boolean deviceNeedsNoToneMappingWorkaround() {
// Pixel build ID does not support tone mapping. See http://b/249297370#comment8.
return Build.ID.startsWith("TP1A.220905.004");
// Pixel build ID prefix does not support tone mapping. See http://b/249297370#comment8.
return Util.MANUFACTURER.equals("Google") && Build.ID.startsWith("TP1A");
}
/**