Apply setOutputSurfaceWorkaround to required FireOS devices

Amazon like to use Device.MODEL, so key on that instead for
these workarounds.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=206917935
This commit is contained in:
olly 2018-08-01 05:56:04 -07:00 committed by Oliver Woodman
parent ed18be4eea
commit 5faa662e43

View file

@ -1340,7 +1340,16 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
deviceNeedsSetOutputSurfaceWorkaround = true;
break;
default:
// Workaround not required.
// Do nothing.
break;
}
switch (Util.MODEL) {
case "AFTA":
case "AFTN":
deviceNeedsSetOutputSurfaceWorkaround = true;
break;
default:
// Do nothing.
break;
}
evaluatedDeviceNeedsSetOutputSurfaceWorkaround = true;