Skip to content

Commit

Permalink
update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
djorka committed Jan 10, 2024
1 parent c01e62f commit 1023173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public void forethoughtHandoffRequested(@NonNull ForethoughtHandoffData forethou
// Custom hand-off action
Log.i("FTS", "ForethoughtHandOffRequested");
// success
Forethought.INSTANCE.hide();
Forethought.INSTANCE.sendHandoffResponse(true);
// failure
// Forethought.INSTANCE.sendHandoffResponse(false);
// hide Forethought
Forethought.INSTANCE.hide();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ class MainActivity : AppCompatActivity(), ForethoughtListener {
// Custom hand-off action
Log.i("FTS", "ForethoughtHandOffRequested")
// success
Forethought.hide()
Forethought.sendHandoffResponse(true)
// failure
// Forethought.sendHandoffResponse(false)
// hide Forethought
Forethought.hide()
}

override fun onWidgetClosed() {
Expand Down

0 comments on commit 1023173

Please sign in to comment.