fix: crash while opening terminal (#658)

Fixes #639
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-12-14 21:06:37 +08:00
committed by GitHub
parent 831efa833b
commit 2f6db2961f
12 changed files with 125 additions and 85 deletions

View File

@@ -8,11 +8,12 @@ abstract final class BgRunMC {
_channel.invokeMethod('sendToBackground');
}
/// TODO: try fix the fn, then uncomment it and [stopService]
static void startService() {
_channel.invokeMethod('startService');
// _channel.invokeMethod('startService');
}
static void stopService() {
_channel.invokeMethod('stopService');
// _channel.invokeMethod('stopService');
}
}