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