mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-03 19:39:20 +08:00
remove link and wake lock for service start/stop
This commit is contained in:
parent
c66cf22c46
commit
b436dba0d9
@ -1 +0,0 @@
|
||||
../../../../../../../../.android/libc++_shared.so
|
@ -1 +0,0 @@
|
||||
../../../../../../../../.android/libcrypto.so
|
@ -1 +0,0 @@
|
||||
../../../../../../../../.android/liblibrustdesk.so
|
@ -1 +0,0 @@
|
||||
../../../../../../../../.android/libssl.so
|
@ -1 +0,0 @@
|
||||
/Users/hzhou/.android/key.properties
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user