fixed crash when an user tries to add the same hidden service port twice
This commit is contained in:
parent
5b255df92d
commit
2922e48730
|
@ -624,7 +624,7 @@ public class OrbotMainActivity extends AppCompatActivity
|
|||
|
||||
if (row == null || row.getCount() < 1) {
|
||||
cr.insert(HSContentProvider.CONTENT_URI, fields);
|
||||
} else {
|
||||
} else if (row.moveToFirst()) {
|
||||
onionHostname = row.getString(row.getColumnIndex(HSContentProvider.HiddenService.DOMAIN));
|
||||
row.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue