mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Disable wakelock when patching is canceled (#1514)
This commit is contained in:
parent
78978276c4
commit
9df89c7b74
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@ class InstallerViewModel extends BaseViewModel {
|
|||
isCanceled = true;
|
||||
update(0.5, 'Canceling...', 'Canceling patching process');
|
||||
await _patcherAPI.stopPatcher();
|
||||
await WakelockPlus.disable();
|
||||
update(-100.0, 'Canceled...', 'Press back to exit');
|
||||
} on Exception catch (e) {
|
||||
if (kDebugMode) {
|
||||
|
|
Loading…
Reference in a new issue