diff --git a/OpenEdXMobile/src/main/java/org/edx/mobile/view/MyCoursesListFragment.kt b/OpenEdXMobile/src/main/java/org/edx/mobile/view/MyCoursesListFragment.kt index abe31acdfc..b16271c9d3 100644 --- a/OpenEdXMobile/src/main/java/org/edx/mobile/view/MyCoursesListFragment.kt +++ b/OpenEdXMobile/src/main/java/org/edx/mobile/view/MyCoursesListFragment.kt @@ -153,7 +153,7 @@ class MyCoursesListFragment : OfflineSupportBaseFragment(), RefreshListener { } private fun initInAppPurchaseSetup() { - if (environment.remoteFeaturePrefs.isValuePropEnabled()) { + if (isAdded && environment.remoteFeaturePrefs.isValuePropEnabled()) { initFullscreenLoader() initObservers() }