From df49951d3fb31a2b920ec289e9cec4f2270cd087 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Thu, 25 Jul 2019 18:03:12 +0200 Subject: [PATCH] Prevent the user modifying a nextcloud news feed url as the API doesn't allow its modification --- app/src/main/java/com/readrops/app/views/EditFeedDialog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/readrops/app/views/EditFeedDialog.java b/app/src/main/java/com/readrops/app/views/EditFeedDialog.java index d94ce6c2..b1b56eb6 100644 --- a/app/src/main/java/com/readrops/app/views/EditFeedDialog.java +++ b/app/src/main/java/com/readrops/app/views/EditFeedDialog.java @@ -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()); }