Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKaN committed Apr 22, 2024
1 parent 91d1fe5 commit 4ad9522
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.piano.android.analytics

import io.piano.android.analytics.model.PrivacyMode
import io.piano.android.analytics.model.PrivacyMode.Companion.NO_CONSENT
import io.piano.android.analytics.model.PrivacyMode.Companion.toPrivacyMode
import io.piano.android.analytics.model.PrivacyStorageFeature
import io.piano.android.consents.PianoConsents
Expand Down Expand Up @@ -52,7 +51,7 @@ public class PrivacyModesStorage internal constructor(
if (consentsEnabled) {
return pianoConsents?.let {
it.consents[it.productsToPurposesMapping[Product.PA]]?.mode
}?.toPrivacyMode() ?: NO_CONSENT
}?.toPrivacyMode() ?: PrivacyMode.NO_CONSENT
}
if (field != PrivacyMode.NO_CONSENT && field != PrivacyMode.NO_STORAGE) {
if (prefsStorage.privacyExpirationTimestamp in 1..System.currentTimeMillis()) {
Expand Down

0 comments on commit 4ad9522

Please sign in to comment.