Skip to content

Commit

Permalink
Expand setOutputSurface workaround to more FireOS devices
Browse files Browse the repository at this point in the history
Issue: google/ExoPlayer#10454
PiperOrigin-RevId: 462375294
(cherry picked from commit e5a1e00)
  • Loading branch information
ojw28 authored and microkatz committed Jul 21, 2022
1 parent 83bebd3 commit 8f30563
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,21 @@ private static boolean evaluateDeviceNeedsSetOutputSurfaceWorkaround() {
// https://github.com/google/ExoPlayer/issues/4468#issuecomment-459291645.
return true;
}
switch (Util.MODEL) {
// Workaround for some Fire OS devices.
case "AFTA":
case "AFTN":
case "AFTR":
case "AFTEU011":
case "AFTEU014":
case "AFTEUFF014":
case "AFTJMST12":
case "AFTKMST12":
case "AFTSO001":
return true;
default:
break; // Do nothing.
}
if (Util.SDK_INT <= 26) {
// In general, devices running API level 27 or later should be unaffected unless observed
// otherwise. Enable the workaround on a per-device basis. Works around:
Expand Down Expand Up @@ -1926,8 +1941,6 @@ private static boolean evaluateDeviceNeedsSetOutputSurfaceWorkaround() {
break; // Do nothing.
}
switch (Util.MODEL) {
case "AFTA":
case "AFTN":
case "JSN-L21":
return true;
default:
Expand Down

0 comments on commit 8f30563

Please sign in to comment.