File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
app/src/main/java/com/duckduckgo/app
browser/senseofprotection Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ interface SenseOfProtectionExperiment {
41
41
fun isUserEnrolledInAVariantAndExperimentEnabled (): Boolean
42
42
fun isUserEnrolledInVariant2CohortAndExperimentEnabled (): Boolean
43
43
fun isUserEnrolledInModifiedControlCohortAndExperimentEnabled (): Boolean
44
+ fun isMemberOfVariant2Cohort (): Boolean
44
45
}
45
46
46
47
@ContributesBinding(
@@ -78,6 +79,10 @@ class SenseOfProtectionExperimentImpl @Inject constructor(
78
79
getNewUserExperimentCohortName() == VARIANT_2 .cohortName && isNewUserExperimentEnabled(VARIANT_2 ) ||
79
80
getExistingUserExperimentCohortName() == VARIANT_2 .cohortName && isExistingUserExperimentEnabled(VARIANT_2 )
80
81
82
+ override fun isMemberOfVariant2Cohort (): Boolean =
83
+ senseOfProtectionToggles.senseOfProtectionNewUserExperimentApr25().getCohort()?.name == SenseOfProtectionToggles .Cohorts .VARIANT_2 .cohortName ||
84
+ senseOfProtectionToggles.senseOfProtectionExistingUserExperimentApr25().getCohort()?.name == SenseOfProtectionToggles .Cohorts .VARIANT_2 .cohortName
85
+
81
86
override fun getTabManagerPixelParams (): Map <String , String > {
82
87
return when {
83
88
isEnrolledInNewUserExperiment() -> {
Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ class TabSwitcherViewModel @Inject constructor(
609
609
}
610
610
611
611
suspend fun getNormalTabItemsWithOptionalAnimationTile (): List <TabSwitcherItem > {
612
- return if (senseOfProtectionExperiment.isUserEnrolledInVariant2CohortAndExperimentEnabled ()) {
612
+ return if (senseOfProtectionExperiment.isMemberOfVariant2Cohort ()) {
613
613
if (! isAnimationTileDismissed) {
614
614
val trackerCountForLast7Days = webTrackersBlockedAppRepository.getTrackerCountForLast7Days()
615
615
You can’t perform that action at this time.
0 commit comments