From 4ad952239dbad7d6e55a53e167094087cb8a5b06 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Mon, 22 Apr 2024 11:18:02 +0400 Subject: [PATCH] Fix import --- .../java/io/piano/android/analytics/PrivacyModesStorage.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piano-analytics/src/main/java/io/piano/android/analytics/PrivacyModesStorage.kt b/piano-analytics/src/main/java/io/piano/android/analytics/PrivacyModesStorage.kt index 91a10aa..fec2996 100644 --- a/piano-analytics/src/main/java/io/piano/android/analytics/PrivacyModesStorage.kt +++ b/piano-analytics/src/main/java/io/piano/android/analytics/PrivacyModesStorage.kt @@ -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 @@ -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()) {