update UI ; fix android InputService @Keep
This commit is contained in:
parent
21e64cce09
commit
bb21435faa
@ -7,6 +7,7 @@ import android.graphics.Path
|
|||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import android.view.accessibility.AccessibilityEvent
|
import android.view.accessibility.AccessibilityEvent
|
||||||
|
import androidx.annotation.Keep
|
||||||
import androidx.annotation.RequiresApi
|
import androidx.annotation.RequiresApi
|
||||||
|
|
||||||
class InputService : AccessibilityService() {
|
class InputService : AccessibilityService() {
|
||||||
@ -30,6 +31,7 @@ class InputService : AccessibilityService() {
|
|||||||
private var mouseX = 0
|
private var mouseX = 0
|
||||||
private var mouseY = 0
|
private var mouseY = 0
|
||||||
|
|
||||||
|
@Keep
|
||||||
@RequiresApi(Build.VERSION_CODES.N)
|
@RequiresApi(Build.VERSION_CODES.N)
|
||||||
fun rustMouseInput(mask: Int, _x: Int, _y: Int) {
|
fun rustMouseInput(mask: Int, _x: Int, _y: Int) {
|
||||||
val x = if (_x < 0) {
|
val x = if (_x < 0) {
|
||||||
@ -107,11 +109,7 @@ class InputService : AccessibilityService() {
|
|||||||
init(this)
|
init(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAccessibilityEvent(event: AccessibilityEvent?) {
|
override fun onAccessibilityEvent(event: AccessibilityEvent?) {}
|
||||||
// TODO("Not yet implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onInterrupt() {
|
override fun onInterrupt() {}
|
||||||
// TODO("Not yet implemented")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,8 @@ class CustomAlertDialog extends StatelessWidget {
|
|||||||
onWillPop: onWillPop ?? () async => false,
|
onWillPop: onWillPop ?? () async => false,
|
||||||
child: AlertDialog(
|
child: AlertDialog(
|
||||||
title: title,
|
title: title,
|
||||||
contentPadding: EdgeInsets.all(contentPadding ?? 20),
|
contentPadding: EdgeInsets.symmetric(
|
||||||
|
horizontal: contentPadding ?? 25, vertical: 10),
|
||||||
content: content,
|
content: content,
|
||||||
actions: actions,
|
actions: actions,
|
||||||
));
|
));
|
||||||
|
@ -296,9 +296,8 @@ class ServerModel with ChangeNotifier {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(translate("Do you accept?")),
|
Text(translate("Do you accept?")),
|
||||||
SizedBox(height: 20),
|
|
||||||
clientInfo(client),
|
clientInfo(client),
|
||||||
Text(translate("android_new_connection_tip")),
|
Text(translate("android_new_connection_tip"),style: TextStyle(color: Colors.black54),),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user