change to platform guards

This commit is contained in:
Bjoern Hauffe
2023-02-10 20:47:33 +01:00
parent 05e8c96cfe
commit ba1387fdf5

View File

@@ -142,12 +142,11 @@ void main() async {
appSettingsCubit.stream.listen((event) => languageHeaderInterceptor
.preferredLocaleSubtag = event.preferredLocaleSubtag);
try {
if (!Platform.isIOS) {
// Temporary Fix: Can be removed if the flutter engine implements the fix itself
// Activate the highest availabe refresh rate on the device
await FlutterDisplayMode.setHighRefreshRate();
} catch(e) {
print("Can't set high refresh rate");
}