mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +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;
|
isCanceled = true;
|
||||||
update(0.5, 'Canceling...', 'Canceling patching process');
|
update(0.5, 'Canceling...', 'Canceling patching process');
|
||||||
await _patcherAPI.stopPatcher();
|
await _patcherAPI.stopPatcher();
|
||||||
|
await WakelockPlus.disable();
|
||||||
update(-100.0, 'Canceled...', 'Press back to exit');
|
update(-100.0, 'Canceled...', 'Press back to exit');
|
||||||
} on Exception catch (e) {
|
} on Exception catch (e) {
|
||||||
if (kDebugMode) {
|
if (kDebugMode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user