From f6ab065bb419e236ce2267b645ef562bb5b47a9f Mon Sep 17 00:00:00 2001 From: Abhishek Pandey <64667840+1abhishekpandey@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:26:47 +0530 Subject: [PATCH] chore: correct `alias` api --- .../java/com/rudderstack/android/sdk/core/RudderClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java b/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java index 056ee063..3b46db9d 100644 --- a/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java +++ b/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java @@ -471,7 +471,7 @@ public void alias(String newId) { } public void alias(@NonNull String newId, @Nullable RudderOption option) { - alias(newId, option, null); + alias(newId, null, option); } /** @@ -482,7 +482,7 @@ public void alias(@NonNull String newId, @Nullable RudderOption option) { * @param newId New userId for the user * @param option RudderOptions for this event */ - public void alias(@NonNull String newId, @Nullable RudderOption option, @Nullable String previousId) { + public void alias(@NonNull String newId, @Nullable String previousId, @Nullable RudderOption option) { RudderContext context = getRudderContext(); Map traits = null; if (context != null) {