diff options
author | ByteHamster <info@bytehamster.com> | 2022-02-18 21:35:32 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-02-18 21:35:32 +0100 |
commit | 860b79e6be1f274b3b578741c6baf5879d4864c6 (patch) | |
tree | b38c8f535c1472d4d01f12c33a89897cab12f433 | |
parent | 37eec9902b8a92d1cda8cdbdbe93d9254b2e4034 (diff) | |
download | antennapod-860b79e6be1f274b3b578741c6baf5879d4864c6.zip |
Shrink discovery section when hidden
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/QuickFeedDiscoveryFragment.java | 9 |
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; } |