Skip to content

Commit

Permalink
Location: Build correct request intent
Browse files Browse the repository at this point in the history
Fixes #2564
  • Loading branch information
mar-v-in committed Sep 28, 2024
1 parent 09cf3c8 commit 2149212
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class NetworkLocationProviderPreTiramisu : AbstractLocationProviderPreTiramisu {
forceNow = false
intervalMillis = Long.MAX_VALUE
}
val intent = Intent(context, NetworkLocationService::class.java)
val intent = Intent(ACTION_NETWORK_LOCATION_SERVICE)
intent.`package` = context.packageName
intent.putExtra(EXTRA_PENDING_INTENT, pendingIntent)
intent.putExtra(EXTRA_ENABLE, true)
intent.putExtra(EXTRA_INTERVAL_MILLIS, intervalMillis)
Expand Down

0 comments on commit 2149212

Please sign in to comment.