File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
sdk/forms/src/main/java/com/klaviyo/forms/presentation Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ internal class KlaviyoPresentationManager() : PresentationManager {
33
33
*/
34
34
private fun onActivityEvent (event : ActivityEvent ) = when (event) {
35
35
is ActivityEvent .Created -> event.activity.takeIf<KlaviyoFormsOverlayActivity >()?.let { activity ->
36
- val formId = presentationState.takeIf<PresentationState .Presenting >()?.formId
37
- overlayActivity = activity
38
- Registry .get<WebViewClient >().attachWebView(activity)
39
- presentationState = PresentationState .Presented (formId)
36
+ presentationState.takeIf<PresentationState .Presenting >()?.let {
37
+ overlayActivity = activity
38
+ Registry .get<WebViewClient >().attachWebView(activity)
39
+ presentationState = PresentationState .Presented (it.formId)
40
+ Registry .log.debug(" Finished presenting activity, now in state: $presentationState " )
41
+ }
40
42
}
41
43
42
44
is ActivityEvent .ConfigurationChanged -> presentationState.takeIfNot<PresentationState .Hidden >()?.let {
You can’t perform that action at this time.
0 commit comments