diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 600be74c..fa852dad 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -780,18 +780,8 @@ public class Game extends Activity implements SurfaceHolder.Callback, streamView.setDesiredAspectRatio((double)prefConfig.width / (double)prefConfig.height); } - if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEVISION) || - getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { - // TVs may take a few moments to switch refresh rates, and we can probably assume - // it will be eventually activated. - // TODO: Improve this - return displayRefreshRate; - } - else { - // Use the actual refresh rate of the display, since the preferred refresh rate or mode - // may not actually be applied (ex: Pixel 4 with Smooth Display disabled). - return getWindowManager().getDefaultDisplay().getRefreshRate(); - } + // FIXME: This assumes the refresh rate will always be successfully applied + return displayRefreshRate; } @SuppressLint("InlinedApi")