Skip to content

Commit

Permalink
add version gate
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyHuRadar committed Nov 7, 2024
1 parent cfdf88e commit 354866c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/src/main/java/io/radar/sdk/RadarApiHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.radar.sdk

import android.content.Context
import android.net.Uri
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.os.SystemClock
Expand Down Expand Up @@ -81,7 +82,7 @@ internal open class RadarApiHelper(
val updatedAtMsDiff = params.optLong("updatedAtMsDiff", -1L)
val replays = params.optJSONArray("replays")

if (updatedAtMsDiff != -1L || replays != null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && ( updatedAtMsDiff != -1L || replays != null)) {
val nowMs = SystemClock.elapsedRealtimeNanos() / 1000000

val locationMs = params.optLong("locationMs", -1L)
Expand Down

0 comments on commit 354866c

Please sign in to comment.