Remove Pixel watch check

It's unlikely anyone will try to use Transformer on watches.

PiperOrigin-RevId: 510115645
This commit is contained in:
andrewlewis 2023-02-16 13:23:29 +00:00 committed by christosts
parent cec603393d
commit 5d8a83f924

View File

@ -118,11 +118,9 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
}
private static boolean deviceNeedsNoToneMappingWorkaround() {
// Pixel build ID prefix does not support tone mapping. See http://b/249297370#comment8.
return Util.MANUFACTURER.equals("Google")
&& (
/* Pixel 6 */ Build.ID.startsWith("TP1A")
|| Build.ID.startsWith(/* Pixel Watch */ "rwd9.220429.053"));
// Some Pixel 6 builds report support for tone mapping but the feature doesn't work
// (see http://b/249297370#comment8).
return Util.MANUFACTURER.equals("Google") && Build.ID.startsWith("TP1A");
}
@RequiresNonNull("#1.sampleMimeType")