mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-17 22:46:27 +08:00
fix: Disable wakelock when patching is canceled (#1514)
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user