use unknown networkstrength, not none (#1222)

pull/1192/head
Andrew Valish 5 years ago committed by GitHub
parent fe911bcca8
commit d161584f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      common/android.py

@ -233,7 +233,7 @@ def get_network_strength(network_type):
return network_strength
if network_type == NetworkType.wifi:
out = subprocess.check_output('dumpsys connectivity', shell=True).decode('ascii')
network_strength = NetworkStrength.none
network_strength = NetworkStrength.unknown
for line in out.split('\n'):
if "SignalStrength" in line:
arr = line.split(' ')

Loading…
Cancel
Save