From 238a695c1bfe4280d918f3d61105a6b02f2d7d6c Mon Sep 17 00:00:00 2001 From: arrase Date: Sun, 27 Nov 2016 23:01:58 +0100 Subject: [PATCH] bug fix --- .../org/torproject/android/OrbotMainActivity.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java index d227c62d..59dba4ba 100644 --- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java +++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java @@ -657,13 +657,12 @@ public class OrbotMainActivity extends AppCompatActivity } }.start(); + } else { + Intent nResult = new Intent(); + nResult.putExtra("hs_host", onionHostname); + setResult(RESULT_OK, nResult); + finish(); } - - Intent nResult = new Intent(); - nResult.putExtra("hs_host", onionHostname); - setResult(RESULT_OK, nResult); - finish(); - } private synchronized void handleIntents() {