diff --git a/app/src/main/java/com/kickstarter/ui/activities/DiscoveryActivity.kt b/app/src/main/java/com/kickstarter/ui/activities/DiscoveryActivity.kt index 46f6861541..e6892233fe 100644 --- a/app/src/main/java/com/kickstarter/ui/activities/DiscoveryActivity.kt +++ b/app/src/main/java/com/kickstarter/ui/activities/DiscoveryActivity.kt @@ -29,6 +29,7 @@ import com.kickstarter.ui.IntentKey import com.kickstarter.ui.adapters.DiscoveryDrawerAdapter import com.kickstarter.ui.adapters.DiscoveryPagerAdapter import com.kickstarter.ui.data.LoginReason +import com.kickstarter.ui.extensions.setUpConnectivityStatusCheck import com.kickstarter.ui.extensions.showErrorSnackBar import com.kickstarter.ui.extensions.showSuccessSnackBar import com.kickstarter.ui.extensions.startActivityWithTransition @@ -57,6 +58,8 @@ class DiscoveryActivity : AppCompatActivity() { installSplashScreen() super.onCreate(savedInstanceState) + setUpConnectivityStatusCheck(lifecycle) + binding = DiscoveryLayoutBinding.inflate(layoutInflater) WindowInsetsUtil.manageEdgeToEdge( window, diff --git a/app/src/main/java/com/kickstarter/viewmodels/DiscoveryViewModel.kt b/app/src/main/java/com/kickstarter/viewmodels/DiscoveryViewModel.kt index 6c61d64ef0..e553e79c67 100644 --- a/app/src/main/java/com/kickstarter/viewmodels/DiscoveryViewModel.kt +++ b/app/src/main/java/com/kickstarter/viewmodels/DiscoveryViewModel.kt @@ -480,7 +480,9 @@ interface DiscoveryViewModel { } fun provideIntent(intent: Intent) { - this.intent.onNext(intent) + if (intent.isNotNull()) { + this.intent.onNext(intent) + } } override fun onCleared() {