mirror of https://github.com/readrops/Readrops.git
Prevent the user modifying a nextcloud news feed url as the API doesn't allow its modification
This commit is contained in:
parent
00fae40637
commit
df49951d3f
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue