From cea85e000d07a447a845cf56a6e981bc0de0dbba Mon Sep 17 00:00:00 2001 From: Anton Stubenbord Date: Sat, 11 Feb 2023 12:50:49 +0100 Subject: [PATCH] bugfix: Add platform guard around setting refresh rate --- lib/main.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 4135dc8..f6c5b70 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -295,7 +295,9 @@ class _AuthenticationWrapperState extends State { super.initState(); // Temporary Fix: Can be removed if the flutter engine implements the fix itself // Activate the highest supported refresh rate on the device - setOptimalDisplayMode(); + if (Platform.isAndroid) { + setOptimalDisplayMode(); + } initializeDateFormatting(); // For sharing files coming from outside the app while the app is still opened ReceiveSharingIntent.getMediaStream()