[auth] Set high refresh rates only on Android
This commit is contained in:
parent
30d3c738f5
commit
45416d5ba0
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:adaptive_theme/adaptive_theme.dart';
|
||||
import 'package:computer/computer.dart';
|
||||
import "package:ente_auth/app/view/app.dart";
|
||||
|
@ -33,7 +35,9 @@ void main() async {
|
|||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await _runInForeground();
|
||||
await _setupPrivacyScreen();
|
||||
FlutterDisplayMode.setHighRefreshRate();
|
||||
if (Platform.isAndroid) {
|
||||
FlutterDisplayMode.setHighRefreshRate().ignore();
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _runInForeground() async {
|
||||
|
|
Loading…
Add table
Reference in a new issue