Skip to content

Commit

Permalink
Update the opt-out option logic according to the review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle committed Jul 30, 2024
1 parent 7d0669c commit 53f431b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/mparticle/kits/UrbanAirshipKit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class UrbanAirshipKit : KitIntegration(), KitIntegration.PushListener, KitIntegr

override fun setOptOut(optedOut: Boolean): List<ReportingMessage> {
UAirship.shared().privacyManager.setEnabledFeatures(
if (optedOut) PrivacyManager.Feature.ALL else PrivacyManager.Feature.NONE
if (optedOut) PrivacyManager.Feature.NONE else PrivacyManager.Feature.ALL
)
val message = ReportingMessage(
this,
Expand Down

0 comments on commit 53f431b

Please sign in to comment.