Prevent the user modifying a nextcloud news feed url as the API doesn't allow its modification

This commit is contained in:
Shinokuni 2019-07-25 18:03:12 +02:00
parent 00fae40637
commit df49951d3f
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ public class EditFeedDialog extends DialogFragment implements AdapterView.OnItem
feedUrl = v.findViewById(R.id.edit_feed_url_edit_text);
folder = v.findViewById(R.id.edit_feed_folder_spinner);
//TODO : this is temporary and should be changed when other service APIs are implemented
if (account.getAccountType() == Account.AccountType.NEXTCLOUD_NEWS)
feedUrl.setEnabled(false);
feedName.setText(feedWithFolder.getFeed().getName());
feedUrl.setText(feedWithFolder.getFeed().getUrl());
}