Unverified Commit 14367e0a authored by Nathan Freitas's avatar Nathan Freitas Committed by GitHub
Browse files

Merge pull request #76 from dixidroid/master

fixed crash when an user tries to add the same hidden service port twice
parents 8bbf0ba7 2922e487
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment