Skip to content

Commit

Permalink
Phenotype: Add empty name to ExperimentTokens returned
Browse files Browse the repository at this point in the history
Fixes issues with some Google Apps
  • Loading branch information
mar-v-in committed Dec 8, 2023
1 parent b4e50cc commit b9a941c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ class PhenotypeServiceImpl : IPhenotypeService.Stub() {

override fun getExperimentTokens2(callbacks: IPhenotypeCallbacks, p1: String?, p2: String?, p3: String?, p4: String?) {
Log.d(TAG, "getExperimentTokens2($p1, $p2, $p3, $p4)")
callbacks.onExperimentTokens(Status.SUCCESS, ExperimentTokens())
callbacks.onExperimentTokens(Status.SUCCESS, ExperimentTokens().apply {
field2 = ""
})
}

override fun syncAfterOperation2(callbacks: IPhenotypeCallbacks?, p1: Long) {
Expand Down

1 comment on commit b9a941c

@dylangerdaly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use this API to flip some flags for some apps?

Please sign in to comment.