Skip to content

Commit

Permalink
fix: application opened event property value
Browse files Browse the repository at this point in the history
  • Loading branch information
1abhishekpandey committed Jul 12, 2023
1 parent 19f952e commit 1574915
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ void sendApplicationUpdated(int previousBuild, int currentBuild, String previous
}

void sendApplicationOpened() {
Boolean isFirstLaunchValue = isFirstLaunch.getAndSet(false);
if (repository.getOptStatus()) {
return;
}
RudderProperty rudderProperty = new RudderProperty().putValue("from_background", !isFirstLaunch.get());
if (Boolean.TRUE.equals(isFirstLaunchValue)) {
boolean hasLaunchedBefore = !isFirstLaunch.getAndSet(false);
RudderProperty rudderProperty = new RudderProperty().putValue("from_background", hasLaunchedBefore);
if (!hasLaunchedBefore) {
rudderProperty.putValue(VERSION, preferenceManager.getVersionName());
}
RudderMessage trackMessage = new RudderMessageBuilder()
Expand Down

0 comments on commit 1574915

Please sign in to comment.