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 {
161
161
deviceId = task.await()
162
162
}
163
163
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
168
166
}
169
167
170
168
storage.write(Storage .Constants .DeviceId , deviceId)
@@ -173,7 +171,7 @@ class AndroidContextPlugin : Plugin {
173
171
174
172
internal fun getDeviceId (collectDeviceId : Boolean , fallbackDeviceId : String ): String {
175
173
if (! collectDeviceId) {
176
- return storage.read(Storage .Constants .AnonymousId ) ? : " "
174
+ return storage.read(Storage .Constants .AnonymousId ) ? : fallbackDeviceId
177
175
}
178
176
179
177
// unique id generated from DRM API
You can’t perform that action at this time.
0 commit comments