HDR: Generalize Pixel 6 workaround to TP

PiperOrigin-RevId: 485366659
(cherry picked from commit a65ff85a98f25ae73a08842f1f3f6c5d1433e7e9)
This commit is contained in:
huangdarwin 2022-11-01 18:09:01 +00:00 committed by microkatz
parent ecb9d5988e
commit 9b81c2d114

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");
}
/**