This commit is contained in:
arrase 2016-11-27 23:52:35 +01:00
parent 238a695c1b
commit 9e0bdcf147
1 changed files with 7 additions and 3 deletions

View File

@ -623,7 +623,12 @@ public class OrbotMainActivity extends AppCompatActivity
);
if (onion != null && onion.getCount() > 0) {
onion.moveToNext();
hostname = onion.getString(onion.getColumnIndex(HSContentProvider.HiddenService.NAME));
if(hostname == null || hostname.length() < 1)
continue;
nResult.putExtra("hs_host", hostname);
if (hsKeyPath != null) {
@ -649,11 +654,10 @@ public class OrbotMainActivity extends AppCompatActivity
}
onion.close();
setResult(RESULT_OK, nResult);
finish();
}
}
setResult(RESULT_OK, nResult);
finish();
}
}.start();