diff --git a/gui/android.py b/gui/android.py index 70950cda..2a42fa37 100644 --- a/gui/android.py +++ b/gui/android.py @@ -104,11 +104,8 @@ def protocol_name(p): def protocol_dialog(host, protocol, z): - droid.dialogCreateAlert('Protocol',host) - if z: - protocols = z.keys() - else: - protocols = 'ts' + droid.dialogCreateAlert('Protocol', host) + protocols = filter(lambda x: x in "ts", z.keys()) l = [] current = protocols.index(protocol) for p in protocols: