Fix running integration tests in december (#8155)

AntennaPod Echo should not restart the app and break all tests with it.
This commit is contained in:
Hans-Peter Lehmann
2025-12-14 11:04:42 +01:00
committed by GitHub
parent 922cb7b3b7
commit 41edc90c86

View File

@ -66,6 +66,8 @@ public class EchoSection extends Fragment {
void hideThisYear() {
getContext().getSharedPreferences(HomeFragment.PREF_NAME, Context.MODE_PRIVATE)
.edit().putInt(HomeFragment.PREF_HIDE_ECHO, EchoConfig.RELEASE_YEAR).apply();
((MainActivity) getActivity()).loadFragment(HomeFragment.TAG, null);
if (isVisible()) {
((MainActivity) getActivity()).loadFragment(HomeFragment.TAG, null);
}
}
}