@@ -268,11 +268,11 @@ private void internalSyncUserState(boolean fromSyncService) {
268
268
synchronized (LOCK ) {
269
269
jsonBody = getCurrentUserState ().generateJsonDiff (getToSyncUserState (), isSessionCall );
270
270
UserState toSyncState = getToSyncUserState ();
271
- dependDiff = currentUserState .generateJsonDiffFromDependValues (toSyncState , null );;
271
+ dependDiff = getCurrentUserState () .generateJsonDiffFromDependValues (toSyncState , null );;
272
272
OneSignal .onesignalLog (OneSignal .LOG_LEVEL .DEBUG , "UserStateSynchronizer internalSyncUserState from session call: " + isSessionCall + " jsonBody: " + jsonBody );
273
273
// Updates did not result in a server side change, skipping network call
274
274
if (jsonBody == null ) {
275
- currentUserState .persistStateAfterSync (dependDiff , null );
275
+ getCurrentUserState () .persistStateAfterSync (dependDiff , null );
276
276
sendTagsHandlersPerformOnSuccess ();
277
277
externalUserIdUpdateHandlersPerformOnSuccess ();
278
278
return ;
@@ -294,7 +294,7 @@ private void doEmailLogout(String userId) {
294
294
if (dependValues .has (EMAIL_AUTH_HASH_KEY ))
295
295
jsonBody .put (EMAIL_AUTH_HASH_KEY , dependValues .optString (EMAIL_AUTH_HASH_KEY ));
296
296
297
- ImmutableJSONObject syncValues = currentUserState .getSyncValues ();
297
+ ImmutableJSONObject syncValues = getCurrentUserState () .getSyncValues ();
298
298
if (syncValues .has (PARENT_PLAYER_ID ))
299
299
jsonBody .put (PARENT_PLAYER_ID , syncValues .optString (PARENT_PLAYER_ID ));
300
300
@@ -334,9 +334,9 @@ private void logoutEmailSyncSuccess() {
334
334
toSyncUserState .persistState ();
335
335
336
336
getCurrentUserState ().removeFromDependValues (EMAIL_AUTH_HASH_KEY );
337
- currentUserState .removeFromSyncValues (PARENT_PLAYER_ID );
338
- String emailLoggedOut = currentUserState .getSyncValues ().optString (EMAIL_KEY );
339
- currentUserState .removeFromSyncValues (EMAIL_KEY );
337
+ getCurrentUserState () .removeFromSyncValues (PARENT_PLAYER_ID );
338
+ String emailLoggedOut = getCurrentUserState () .getSyncValues ().optString (EMAIL_KEY );
339
+ getCurrentUserState () .removeFromSyncValues (EMAIL_KEY );
340
340
341
341
OneSignalStateSynchronizer .setNewSessionForEmail ();
342
342
@@ -571,7 +571,7 @@ private void handlePlayerDeletedFromServer() {
571
571
572
572
void resetCurrentState () {
573
573
getCurrentUserState ().setSyncValues (new JSONObject ());
574
- currentUserState .persistState ();
574
+ getCurrentUserState () .persistState ();
575
575
}
576
576
577
577
public abstract boolean getUserSubscribePreference ();
0 commit comments