diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java index acb929dd2..7a363bcc1 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java @@ -100,6 +100,7 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem private ImageView imgvCover; private TextView txtvInformation; private TextView txtvAuthor; + private TextView txtvUpdatesDisabled; private ImageButton butShowInfo; private ImageButton butShowSettings; private View header; @@ -166,6 +167,7 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem butShowSettings = root.findViewById(R.id.butShowSettings); txtvInformation = root.findViewById(R.id.txtvInformation); txtvFailure = root.findViewById(R.id.txtvFailure); + txtvUpdatesDisabled = root.findViewById(R.id.txtvUpdatesDisabled); header = root.findViewById(R.id.headerContainer); AppBarLayout appBar = root.findViewById(R.id.appBar); CollapsingToolbarLayout collapsingToolbar = root.findViewById(R.id.collapsing_toolbar); @@ -456,6 +458,13 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem } else { txtvFailure.setVisibility(View.GONE); } + if (!feed.getPreferences().getKeepUpdated()) { + txtvUpdatesDisabled.setText("{md-pause-circle-outline} " + this.getString(R.string.updates_disabled_label)); + Iconify.addIcons(txtvUpdatesDisabled); + txtvUpdatesDisabled.setVisibility(View.VISIBLE); + } else { + txtvUpdatesDisabled.setVisibility(View.GONE); + } txtvTitle.setText(feed.getTitle()); txtvAuthor.setText(feed.getAuthor()); if (feed.getItemFilter() != null) { diff --git a/app/src/main/res/layout/feeditemlist_header.xml b/app/src/main/res/layout/feeditemlist_header.xml index 2b59845f7..540baf4a7 100644 --- a/app/src/main/res/layout/feeditemlist_header.xml +++ b/app/src/main/res/layout/feeditemlist_header.xml @@ -117,4 +117,15 @@ android:gravity="center" tools:visibility="visible" tools:text="(i) Information"/> + + diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index baa2662fb..83b87faee 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -182,6 +182,7 @@ {fa-exclamation-circle} Last Refresh failed. Tap to view details. Open Podcast Please wait until the data is loaded + Updates disabled Download