File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
android/src/main/kotlin/com/icapps/background_location_tracker Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ internal class MethodCallHelper(private val ctx: Context) : MethodChannel.Method
37
37
val enableNotificationLocationUpdatesKey = " android_config_enable_notification_location_updates"
38
38
val enableCancelTrackingActionKey = " android_config_enable_cancel_tracking_action"
39
39
val cancelTrackingActionTextKey = " android_config_cancel_tracking_action_text"
40
+ val distanceFilterKey = " android_distance_filter"
40
41
val keys = listOf (
41
42
callbackHandleKey,
42
43
loggingEnabledKey,
@@ -57,7 +58,7 @@ internal class MethodCallHelper(private val ctx: Context) : MethodChannel.Method
57
58
val cancelTrackingActionText = call.argument<String >(cancelTrackingActionTextKey)!!
58
59
val enableCancelTrackingAction = call.argument<Boolean >(enableCancelTrackingActionKey)!!
59
60
val trackingInterval = call.argument<Long >(trackingIntervalKey)!!
60
- val distanceFilter = (call.argument<Double >(trackingIntervalKey ) ? : 0.0 ).toFloat()
61
+ val distanceFilter = (call.argument<Double >(distanceFilterKey ) ? : 0.0 ).toFloat()
61
62
SharedPrefsUtil .saveLoggingEnabled(ctx, loggingEnabled)
62
63
SharedPrefsUtil .saveTrackingInterval(ctx, trackingInterval)
63
64
SharedPrefsUtil .saveDistanceFilter(ctx, distanceFilter)
You can’t perform that action at this time.
0 commit comments