Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
fix crash on sample when no RichResponse is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Volkmar Vogel committed Jun 26, 2019
1 parent 51b34c9 commit e8da9a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ class FallbackIntentHandler : MultiPlatformIntentHandler {
override fun canHandleDialogflowIntent(handler: DialogflowHandler) = false

override fun handleDialogflowIntent(handler: DialogflowHandler) =
handler.responseBuilder.withText("Fallback!!!")
handler.responseBuilder.withGoogleSimpleResponse("Fallback!!!")
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LocationPermissionResultIntentHandler : MultiPlatformIntentHandler {

return handler
.responseBuilder
.withText(speech)
.withGoogleSimpleResponse(speech)
.expectUserResponse(false)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ class SignInResultIntentHandler : MultiPlatformIntentHandler {

return handler.responseBuilder
.expectUserResponse(false)
.withText(speech)
.withGoogleSimpleResponse(speech)
}
}

0 comments on commit e8da9a3

Please sign in to comment.