mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Disable wakelock when patching is canceled (#1514)
This commit is contained in:
parent
78978276c4
commit
9df89c7b74
@ -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 New Issue
Block a user