remove link and wake lock for service start/stop

This commit is contained in:
rustdesk 2022-04-19 23:43:55 +08:00
parent c66cf22c46
commit b436dba0d9
6 changed files with 3 additions and 5 deletions

View File

@ -1 +0,0 @@
../../../../../../../../.android/libc++_shared.so

View File

@ -1 +0,0 @@
../../../../../../../../.android/libcrypto.so

View File

@ -1 +0,0 @@
../../../../../../../../.android/liblibrustdesk.so

View File

@ -1 +0,0 @@
../../../../../../../../.android/libssl.so

View File

@ -1 +0,0 @@
/Users/hzhou/.android/key.properties

View File

@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:convert';
import 'package:dash_chat/dash_chat.dart';
import 'package:flutter/material.dart';
import 'package:wakelock/wakelock.dart';
import '../common.dart';
import '../pages/server_page.dart';
import 'model.dart';
@ -208,6 +209,7 @@ class ServerModel with ChangeNotifier {
FFI.setByName("start_service");
getIDPasswd();
updateClientState();
Wakelock.enable();
}
Future<Null> stopService() async {
@ -218,6 +220,7 @@ class ServerModel with ChangeNotifier {
await FFI.invokeMethod("stop_service");
FFI.setByName("stop_service");
notifyListeners();
Wakelock.disable();
}
Future<Null> initInput() async {