mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 16:27:31 +00:00
fix: check android platform for high refresh-rate
This commit is contained in:
parent
923c76adc3
commit
c8ba8c1d8e
@ -87,7 +87,9 @@ Future<void> main(List<String> rawArgs) async {
|
||||
MediaKit.ensureInitialized();
|
||||
|
||||
// force High Refresh Rate on some Android devices (like One Plus)
|
||||
await FlutterDisplayMode.setHighRefreshRate();
|
||||
if (DesktopTools.platform.isAndroid) {
|
||||
await FlutterDisplayMode.setHighRefreshRate();
|
||||
}
|
||||
|
||||
await DesktopTools.ensureInitialized(
|
||||
DesktopWindowOptions(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user