await on toggle operation

This commit is contained in:
Neeraj Gupta 2022-06-19 01:19:17 +05:30
parent 57c838dbf6
commit 49b04f6a97
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -505,7 +505,7 @@ class Configuration {
Future<void> setShouldKeepDeviceAwake(bool value) async {
await _preferences.setBool(keyShouldKeepDeviceAwake, value);
Wakelock.toggle(enable: value);
await Wakelock.toggle(enable: value);
}
Future<void> setShouldBackupVideos(bool value) async {