Skip to content

Commit

Permalink
Check late property is isInitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorvs committed Jan 21, 2025
1 parent 3a4cbd3 commit 7abcc09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ class RealVoiceSearchActivityLauncher @Inject constructor(
activity.window?.decorView?.rootView?.let {
blurRenderer.addBlur(it)
}
val stringSource = if (this::_source.isInitialized) _source.paramValueName else ""
pixel.fire(
pixel = VoiceSearchPixelNames.VOICE_SEARCH_STARTED,
parameters = mapOf(KEY_PARAM_SOURCE to _source.paramValueName),
parameters = mapOf(KEY_PARAM_SOURCE to stringSource),
)
activityResultLauncherWrapper.launch(LaunchVoiceSearch)
}
Expand Down

0 comments on commit 7abcc09

Please sign in to comment.