Skip to content

Commit aefeaf9

Browse files
fix: Install events records for new users Edge case (#528)
1 parent 3c716dd commit aefeaf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android-core/src/main/java/com/mparticle/internal/MessageManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,11 @@ void setFirstRunForMessage(boolean firstRun) {
968968
.apply();
969969
}
970970

971-
boolean isFirstRunForAST() {
971+
synchronized boolean isFirstRunForAST() {
972972
return sPreferences.getBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), true) && isFirstRunForMessageLegacy();
973973
}
974974

975-
void setFirstRunForAST(boolean firstRun) {
975+
synchronized void setFirstRunForAST(boolean firstRun) {
976976
sPreferences.edit()
977977
.putBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), firstRun)
978978
.remove(Constants.PrefKeys.FIRSTRUN_OBSELETE + mConfigManager.getApiKey())

0 commit comments

Comments
 (0)