Shrink discovery section when hidden

This commit is contained in:
ByteHamster 2022-02-18 21:35:32 +01:00
parent 37eec9902b
commit 860b79e6be
1 changed files with 4 additions and 5 deletions

View File

@ -119,13 +119,12 @@ public class QuickFeedDiscoveryFragment extends Fragment implements AdapterView.
String countryCode = prefs.getString(ItunesTopListLoader.PREF_KEY_COUNTRY_CODE, String countryCode = prefs.getString(ItunesTopListLoader.PREF_KEY_COUNTRY_CODE,
Locale.getDefault().getCountry()); Locale.getDefault().getCountry());
if (countryCode.equals(ItunesTopListLoader.DISCOVER_HIDE_FAKE_COUNTRY_CODE)) { if (countryCode.equals(ItunesTopListLoader.DISCOVER_HIDE_FAKE_COUNTRY_CODE)) {
errorTextView.setText(String.format(getResources().getString(R.string.discover_is_hidden), errorTextView.setText(R.string.discover_is_hidden);
getResources().getString(R.string.discover_hide)));
errorView.setVisibility(View.VISIBLE); errorView.setVisibility(View.VISIBLE);
progressBar.setVisibility(View.GONE); progressBar.setVisibility(View.GONE);
discoverGridLayout.setVisibility(View.INVISIBLE); discoverGridLayout.setVisibility(View.GONE);
errorRetry.setVisibility(View.INVISIBLE); errorRetry.setVisibility(View.GONE);
poweredByTextView.setVisibility(View.INVISIBLE); poweredByTextView.setVisibility(View.GONE);
return; return;
} }