HDR: Generalize Pixel 6 workaround to TP

PiperOrigin-RevId: 485366659
(cherry picked from commit 6de5d9336d)
This commit is contained in:
huangdarwin 2022-11-01 18:09:01 +00:00 committed by microkatz
parent 7bfc6457fb
commit 69112df555

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