Merge pull request #76 from dixidroid/master
fixed crash when an user tries to add the same hidden service port twice
This commit is contained in:
commit
14367e0add
|
@ -656,7 +656,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