#1282 Adding feed to root folder

This commit is contained in:
sictiru 2020-07-27 19:04:00 -07:00
parent 93f4c965bb
commit 4a4161e12b

View file

@ -561,7 +561,7 @@ public class APIManager {
public AddFeedResponse addFeed(String feedUrl, @Nullable String folderName) {
ContentValues values = new ContentValues();
values.put(APIConstants.PARAMETER_URL, feedUrl);
if (!TextUtils.isEmpty(folderName)) {
if (!TextUtils.isEmpty(folderName) && !folderName.equals(AppConstants.ROOT_FOLDER)) {
values.put(APIConstants.PARAMETER_FOLDER, folderName);
}
APIResponse response = post(buildUrl(APIConstants.PATH_ADD_FEED), values);