We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c716dd commit aefeaf9Copy full SHA for aefeaf9
android-core/src/main/java/com/mparticle/internal/MessageManager.java
@@ -968,11 +968,11 @@ void setFirstRunForMessage(boolean firstRun) {
968
.apply();
969
}
970
971
- boolean isFirstRunForAST() {
+ synchronized boolean isFirstRunForAST() {
972
return sPreferences.getBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), true) && isFirstRunForMessageLegacy();
973
974
975
- void setFirstRunForAST(boolean firstRun) {
+ synchronized void setFirstRunForAST(boolean firstRun) {
976
sPreferences.edit()
977
.putBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), firstRun)
978
.remove(Constants.PrefKeys.FIRSTRUN_OBSELETE + mConfigManager.getApiKey())
0 commit comments