From 8d95b9c9805d8f931990222c8357a30561c3b33c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 25 Feb 2015 17:25:22 +0100 Subject: [PATCH] android: fix protocols dialog --- gui/android.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: