plugin android: fixed encoding in states after Python 3 port
This commit is contained in:
parent
8442cf691e
commit
5bfb675a29
1 changed files with 4 additions and 4 deletions
|
|
@ -63,9 +63,9 @@ PARAM_VIBRATE_NAME = "vibrate"
|
|||
PARAM_VIBRATE_LABEL = D_("Vibrate on notifications")
|
||||
SOCKET_DIR = "/data/data/org.salutatoi.cagou/"
|
||||
SOCKET_FILE = ".socket"
|
||||
STATE_RUNNING = "running"
|
||||
STATE_PAUSED = "paused"
|
||||
STATE_STOPPED = "stopped"
|
||||
STATE_RUNNING = b"running"
|
||||
STATE_PAUSED = b"paused"
|
||||
STATE_STOPPED = b"stopped"
|
||||
STATES = (STATE_RUNNING, STATE_PAUSED, STATE_STOPPED)
|
||||
NET_TYPE_NONE = "no network"
|
||||
NET_TYPE_WIFI = "wifi"
|
||||
|
|
@ -198,7 +198,7 @@ class AndroidPlugin(object):
|
|||
|
||||
@state.setter
|
||||
def state(self, new_state):
|
||||
log.debug("frontend state has changed: {state}".format(state=new_state))
|
||||
log.debug(f"frontend state has changed: {new_state.decode()}")
|
||||
previous_state = self._state
|
||||
self._state = new_state
|
||||
if new_state == STATE_RUNNING:
|
||||
|
|
|
|||
Loading…
Reference in a new issue