Skip to content

Commit

Permalink
Rename launchDropIn to start on DropInLauncher.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Apr 8, 2024
1 parent 821b249 commit 1977a95
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 @@ -188,7 +188,7 @@ public void launchDropIn(View v) {
}

// TODO: make auth string a required DropInRequest constructor parameter
dropInLauncher.launchDropIn(authString, dropInRequest);
dropInLauncher.start(authString, dropInRequest);
}

private ThreeDSecureRequest demoThreeDSecureRequest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public DropInLauncher(ComponentActivity activity, DropInLauncherCallback callbac
DROP_IN_RESULT, activity, new DropInActivityResultContract(), callback);
}

public void launchDropIn(String authString, DropInRequest dropInRequest) {
public void start(String authString, DropInRequest dropInRequest) {
Authorization authorization = Authorization.fromString(authString);
DropInLaunchInput launchIntent =
new DropInLaunchInput(dropInRequest, authorization);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class DropInLauncherUnitTest : TestCase() {
val sut = DropInLauncher(activity, callback)

val dropInRequest = DropInRequest()
sut.launchDropIn(Fixtures.BASE64_CLIENT_TOKEN, dropInRequest)
sut.start(Fixtures.BASE64_CLIENT_TOKEN, dropInRequest)

val slot = slot<DropInLaunchInput>()
verify { activityLauncher.launch(capture(slot)) }
Expand Down

0 comments on commit 1977a95

Please sign in to comment.