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:
Nathan Freitas 2017-10-31 09:45:19 -04:00 committed by GitHub
commit 14367e0add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}