bug fix
This commit is contained in:
parent
238a695c1b
commit
9e0bdcf147
|
@ -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,12 +654,11 @@ public class OrbotMainActivity extends AppCompatActivity
|
|||
}
|
||||
|
||||
onion.close();
|
||||
}
|
||||
}
|
||||
|
||||
setResult(RESULT_OK, nResult);
|
||||
finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue