Skip to content

Commit

Permalink
fix: after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Feb 25, 2025
1 parent c4c82ed commit 07d0e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ModuleConfiguration extends ModuleBase implements ConfigurationProvider {
loadConfigFromStorage(config.serverConfiguration);

//update the config variables according to the new state
updateConfigVariables();
updateConfigVariables(config);
}

@Override
Expand Down Expand Up @@ -228,7 +228,7 @@ void saveAndStoreDownloadedConfig(@NonNull JSONObject config) {
storageProvider.setServerConfig(configAsString);

//update config variables
updateConfigVariables();
updateConfigVariables(_cly.config_);
}

/**
Expand All @@ -250,7 +250,7 @@ void saveAndStoreDownloadedConfig(@NonNull JSONObject config) {
* }
* }
*/
void fetchConfigFromServer() {
void fetchConfigFromServer(CountlyConfig config) {
L.v("[ModuleConfiguration] fetchConfigFromServer");

// why _cly? because module configuration is created before module device id, so we need to access it like this
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/ly/count/android/sdk/ModuleDeviceId.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void exitTemporaryIdMode(@NonNull String deviceId) {
deviceIdInstance.changeToCustomId(deviceId);

// trigger fetching if the temp id given on init
_cly.moduleConfiguration.fetchConfigFromServer();
_cly.moduleConfiguration.fetchConfigFromServer(_cly.config_);

//update stored request for ID change to use this new ID
replaceTempIDWithRealIDinRQ(deviceId);
Expand Down

0 comments on commit 07d0e49

Please sign in to comment.