summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-02-18 22:14:04 +0100
committerGitHub <noreply@github.com>2022-02-18 22:14:04 +0100
commit814d513964fd3ab803901f14f73417f0cfafc534 (patch)
treedb10bb46c0c22d9d3436558fe57cd54510a84d22
parent9ff295619f7423aeabc1d23464e347fc71af0d4d (diff)
parent860b79e6be1f274b3b578741c6baf5879d4864c6 (diff)
downloadantennapod-814d513964fd3ab803901f14f73417f0cfafc534.zip
Merge pull request #5725 from ByteHamster/smaller-hidden-suggestions
Shrink discovery section when hidden
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java
index 8bfcfd1ed..f76b902cd 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java
@@ -119,13 +119,12 @@ public class QuickFeedDiscoveryFragment extends Fragment implements AdapterView.
String countryCode = prefs.getString(ItunesTopListLoader.PREF_KEY_COUNTRY_CODE,
Locale.getDefault().getCountry());
if (countryCode.equals(ItunesTopListLoader.DISCOVER_HIDE_FAKE_COUNTRY_CODE)) {
- errorTextView.setText(String.format(getResources().getString(R.string.discover_is_hidden),
- getResources().getString(R.string.discover_hide)));
+ errorTextView.setText(R.string.discover_is_hidden);
errorView.setVisibility(View.VISIBLE);
progressBar.setVisibility(View.GONE);
- discoverGridLayout.setVisibility(View.INVISIBLE);
- errorRetry.setVisibility(View.INVISIBLE);
- poweredByTextView.setVisibility(View.INVISIBLE);
+ discoverGridLayout.setVisibility(View.GONE);
+ errorRetry.setVisibility(View.GONE);
+ poweredByTextView.setVisibility(View.GONE);
return;
}