diff --git a/app/src/main/java/com/kickstarter/viewmodels/projectpage/ProjectPageViewModel.kt b/app/src/main/java/com/kickstarter/viewmodels/projectpage/ProjectPageViewModel.kt index 9f09eb70a4..b7d4185ce9 100644 --- a/app/src/main/java/com/kickstarter/viewmodels/projectpage/ProjectPageViewModel.kt +++ b/app/src/main/java/com/kickstarter/viewmodels/projectpage/ProjectPageViewModel.kt @@ -963,7 +963,6 @@ interface ProjectPageViewModel { .map { it.hasVideo() } - .distinctUntilChanged() .subscribe { this.playButtonIsVisible.onNext(it) } .addToDisposable(disposables) diff --git a/app/src/test/java/com/kickstarter/viewmodels/ProjectPageViewModelTest.kt b/app/src/test/java/com/kickstarter/viewmodels/ProjectPageViewModelTest.kt index 3e28c24413..63c0d3acb4 100644 --- a/app/src/test/java/com/kickstarter/viewmodels/ProjectPageViewModelTest.kt +++ b/app/src/test/java/com/kickstarter/viewmodels/ProjectPageViewModelTest.kt @@ -365,7 +365,7 @@ class ProjectPageViewModelTest : KSRobolectricTestCase() { this.vm.configureWith(Intent().putExtra(IntentKey.PROJECT, project)) - playButtonIsVisible.assertValues(false) + playButtonIsVisible.assertValues(false, false) } @Test @@ -385,7 +385,7 @@ class ProjectPageViewModelTest : KSRobolectricTestCase() { this.vm.configureWith(Intent().putExtra(IntentKey.PROJECT, project)) - playButtonIsVisible.assertValues(true) + playButtonIsVisible.assertValues(true, true) } @Test