mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2026-02-04 15:45:37 +00:00
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:
committed by
GitHub
parent
922cb7b3b7
commit
41edc90c86
@ -66,6 +66,8 @@ public class EchoSection extends Fragment {
|
|||||||
void hideThisYear() {
|
void hideThisYear() {
|
||||||
getContext().getSharedPreferences(HomeFragment.PREF_NAME, Context.MODE_PRIVATE)
|
getContext().getSharedPreferences(HomeFragment.PREF_NAME, Context.MODE_PRIVATE)
|
||||||
.edit().putInt(HomeFragment.PREF_HIDE_ECHO, EchoConfig.RELEASE_YEAR).apply();
|
.edit().putInt(HomeFragment.PREF_HIDE_ECHO, EchoConfig.RELEASE_YEAR).apply();
|
||||||
((MainActivity) getActivity()).loadFragment(HomeFragment.TAG, null);
|
if (isVisible()) {
|
||||||
|
((MainActivity) getActivity()).loadFragment(HomeFragment.TAG, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user