File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
android/src/main/java/com/segment/analytics/kotlin/android/plugins Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,8 @@ class AndroidContextPlugin : Plugin {
161161 deviceId = task.await()
162162 }
163163
164- if (deviceId != fallbackDeviceId) {
165- device = updateJsonObject(device) {
166- it[DEVICE_ID_KEY ] = deviceId
167- }
164+ device = updateJsonObject(device) {
165+ it[DEVICE_ID_KEY ] = deviceId
168166 }
169167
170168 storage.write(Storage .Constants .DeviceId , deviceId)
@@ -173,7 +171,7 @@ class AndroidContextPlugin : Plugin {
173171
174172 internal fun getDeviceId (collectDeviceId : Boolean , fallbackDeviceId : String ): String {
175173 if (! collectDeviceId) {
176- return storage.read(Storage .Constants .AnonymousId ) ? : " "
174+ return storage.read(Storage .Constants .AnonymousId ) ? : fallbackDeviceId
177175 }
178176
179177 // unique id generated from DRM API
You can’t perform that action at this time.
0 commit comments