bk138 / droidVNC-NG

VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.39k stars 201 forks source link

"START" button sticks as "START" when the service is started via adb #218

Closed burbilog closed 4 months ago

burbilog commented 4 months ago

Describe the bug

"START" button does not turn into "STOP" button when service started via adb

To Reproduce

  1. Ensure that the service is stopped.
  2. Start service as shown in the documentation via adb:
adb shell am start-foreground-service \
 -n net.christianbeier.droidvnc_ng/.MainService \
 -a net.christianbeier.droidvnc_ng.ACTION_START \
 --es net.christianbeier.droidvnc_ng.EXTRA_ACCESS_KEY de32550a6efb43f8a5d145e6c07b2cde 

It starts, it's ok in menu, it is connectable by vnc clients, etc.

  1. Enter main menu and try to stop service. But there is no STOP button, it's still START button that does nothing.

Expected Behavior

After the service was started via adb the START button should turn into a STOP button.

Environment

bk138 commented 4 months ago

Introduced by c3f6d05af73669311d0654cd234fa833cfbb84e3 which was a fix for #199.