TP-71316 | Location manager event fix (#11673)
This commit is contained in:
@@ -310,8 +310,8 @@ class NaviLocationManager(
|
||||
locationCallback,
|
||||
Looper.getMainLooper()
|
||||
)
|
||||
analyticsTracker.onDeviceSettingSuitableForLocationUpdate()
|
||||
}
|
||||
analyticsTracker.onDeviceSettingSuitableForLocationUpdate()
|
||||
}
|
||||
|
||||
fun fetchUserLocationFromLocalStorage(): UserLocation? {
|
||||
@@ -329,9 +329,9 @@ class NaviLocationManager(
|
||||
locationSettingsResponseTask?.addOnFailureListener { exception ->
|
||||
if (exception is ResolvableApiException) {
|
||||
exception.startResolutionForResult(activity, REQUEST_LOCATION_SETTINGS)
|
||||
analyticsTracker.onDeviceSettingNotSuitableForLocationUpdate(exception.message)
|
||||
}
|
||||
}
|
||||
analyticsTracker.onDeviceSettingNotSuitableForLocationUpdate()
|
||||
}
|
||||
|
||||
override fun onActivityResumed(activity: Activity) {
|
||||
|
||||
@@ -385,8 +385,11 @@ class CommonNaviAnalytics private constructor() {
|
||||
mapOf(Pair("atTimeStamp", System.currentTimeMillis().toString()))
|
||||
)
|
||||
|
||||
fun onDeviceSettingNotSuitableForLocationUpdate() =
|
||||
NaviTrackEvent.trackEvent(DEVICE_SETTINGS_NOT_SUITABLE_FOR_LOCATION_UPDATE)
|
||||
fun onDeviceSettingNotSuitableForLocationUpdate(message: String?) =
|
||||
NaviTrackEvent.trackEvent(
|
||||
DEVICE_SETTINGS_NOT_SUITABLE_FOR_LOCATION_UPDATE,
|
||||
mapOf(Pair("error", message.toString()))
|
||||
)
|
||||
|
||||
fun onDeviceSettingSuitableForLocationUpdate() =
|
||||
NaviTrackEvent.trackEvent(DEVICE_SETTINGS_SUITABLE_FOR_LOCATION_UPDATE)
|
||||
|
||||
Reference in New Issue
Block a user