From 139a04da8b0810d12a8780dd6c3ae2f11ca9268f Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 16 Feb 2020 23:06:49 +0100 Subject: add description to control service --- app/src/main/java/com/javispedro/vndroid/ServerService.java | 1 + app/src/main/res/values/strings.xml | 4 ++++ app/src/main/res/xml/controlservice.xml | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/src/main/java/com/javispedro/vndroid/ServerService.java b/app/src/main/java/com/javispedro/vndroid/ServerService.java index 96420df..b39f175 100644 --- a/app/src/main/java/com/javispedro/vndroid/ServerService.java +++ b/app/src/main/java/com/javispedro/vndroid/ServerService.java @@ -218,6 +218,7 @@ public class ServerService extends Service { private class ScreenGrabberCallback implements ScreenGrabber.Callback { @Override public void onImage(Image image) { + if (image == null) return; if (rfbServer != null) { rfbServer.putImage(image); } else { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bf12595..51d394a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,10 @@ Vndroid + Vndroid control service + Vndroid requires this accessibility service in order to allow VNC clients control of the device (touchscreen, keyboard). + If the service is disabled, clients will be able to see the screen, but will not be able to interact with it. + Server status Server active diff --git a/app/src/main/res/xml/controlservice.xml b/app/src/main/res/xml/controlservice.xml index 29a16b7..85078a7 100644 --- a/app/src/main/res/xml/controlservice.xml +++ b/app/src/main/res/xml/controlservice.xml @@ -1,6 +1,6 @@ - - \ No newline at end of file + android:canPerformGestures="true" + android:summary="@string/control_service_summary" + android:description="@string/control_service_description"/> \ No newline at end of file -- cgit v1.2.3