Cursor cursor = null;
try {
cursor = getContentResolver().query(FeedColumns.CONTENT_URI, FeedColumns.PROJECTION_ID,
FeedColumns.URL + Constants.DB_ARG, new String[]{url}, null);
if (cursor != null && cursor.moveToFirst() && !getIntent().getData().getLastPathSegment().equals(cursor.getString(0))) {
<BUG>Toast.makeText(EditFeedActivity.this, R.string.error_feed_url_exists, Toast.LENGTH_LONG).show();
} else {</BUG>
ContentValues values = new ContentValues();
if (!url.startsWith(Constants.HTTP_SCHEME) && !url.startsWith(Constants.HTTPS_SCHEME)) {
url = Constants.HTTP_SCHEME + url;

Cursor cursor = null;
try {
cursor = getContentResolver().query(FeedColumns.CONTENT_URI, FeedColumns.PROJECTION_ID,
FeedColumns.URL + Constants.DB_ARG, new String[]{url}, null);
if (cursor != null && cursor.moveToFirst() && !getIntent().getData().getLastPathSegment().equals(cursor.getString(0))) {
UiUtils.showMessage(EditFeedActivity.this, R.string.error_feed_url_exists);
} else {
ContentValues values = new ContentValues();
if (!url.startsWith(Constants.HTTP_SCHEME) && !url.startsWith(Constants.HTTPS_SCHEME)) {
url = Constants.HTTP_SCHEME + url;
