mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 02:07:57 -06:00
change to platform guards
This commit is contained in:
@@ -142,12 +142,11 @@ void main() async {
|
|||||||
appSettingsCubit.stream.listen((event) => languageHeaderInterceptor
|
appSettingsCubit.stream.listen((event) => languageHeaderInterceptor
|
||||||
.preferredLocaleSubtag = event.preferredLocaleSubtag);
|
.preferredLocaleSubtag = event.preferredLocaleSubtag);
|
||||||
|
|
||||||
try {
|
|
||||||
|
if (!Platform.isIOS) {
|
||||||
// Temporary Fix: Can be removed if the flutter engine implements the fix itself
|
// Temporary Fix: Can be removed if the flutter engine implements the fix itself
|
||||||
// Activate the highest availabe refresh rate on the device
|
// Activate the highest availabe refresh rate on the device
|
||||||
await FlutterDisplayMode.setHighRefreshRate();
|
await FlutterDisplayMode.setHighRefreshRate();
|
||||||
} catch(e) {
|
|
||||||
print("Can't set high refresh rate");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user