Skip to content

Commit 7533f97

Browse files
committed
fix: assign advertisement id in AdvertisementIdProvider
1 parent 988ff4b commit 7533f97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

parsely/src/main/java/com/parsely/parselyandroid/AdvertisementIdProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ internal class AdvertisementIdProvider(
1616
init {
1717
coroutineScope.launch {
1818
try {
19-
val idInfo = AdvertisingIdClient.getAdvertisingIdInfo(context)
20-
idInfo.id
19+
adKey = AdvertisingIdClient.getAdvertisingIdInfo(context).id
2120
} catch (e: Exception) {
2221
ParselyTracker.PLog("No Google play services or error!")
2322
}

0 commit comments

Comments
 (0)