Skip to content

Commit

Permalink
fix: ANRs in android app due to multiple installReferrer API calls (#479
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Mansi-mParticle authored Apr 12, 2024
1 parent c3be9f7 commit 353eac7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public static void setInstallReferrer(@NonNull Context context, @Nullable String
}

public static void fetchInstallReferrer(@NonNull final Context context, @NonNull final InstallReferrerCallback callback) {
if (InstallReferrerHelper.getInstallReferrer(context) != null) {
return;
}
if (MPUtility.isInstallRefApiAvailable()) {
Runnable runnable = new Runnable() {
@Override
Expand Down

0 comments on commit 353eac7

Please sign in to comment.