Source:
<code>void saveRemoteParams(OneSignalRemoteParams.Params remoteParams, OSTrackerFactory trackerFactory, OSSharedPreferences preferences, OSLogger logger) { this.remoteParams = remoteParams; OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_GT_FIREBASE_TRACKING_ENABLED, remoteParams.firebaseAnalytics ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_RESTORE_TTL_FILTER, remoteParams.restoreTTLFilter ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_CLEAR_GROUP_SUMMARY_CLICK, remoteParams.clearGroupOnSummaryClick ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_RECEIVE_RECEIPTS_ENABLED, remoteParams.receiveReceiptEnabled ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_UNSUBSCRIBE_WHEN_NOTIFICATIONS_DISABLED, remoteParams.unsubscribeWhenNotificationsDisabled ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_DISABLE_GMS_MISSING_PROMPT, remoteParams.disableGMSMissingPrompt ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, preferences.getOutcomesV2KeyName(), remoteParams.influenceParams.outcomesV2ServiceEnabled ); logger.debug("OneSignal saveInfluenceParams: " + remoteParams.influenceParams.toString()); trackerFactory.saveInfluenceParams(remoteParams.influenceParams); if (remoteParams.locationShared != null) { saveLocationShared(remoteParams.locationShared); OneSignal.setSharedLocation(remoteParams.locationShared); } if (remoteParams.requiresUserPrivacyConsent != null) savePrivacyConsentRequired(remoteParams.requiresUserPrivacyConsent); <START> OneSignal.onRemoteParamSet(); <END> }</code><technical_language>easier read this if place this method call of OneSignal class instead of inside, this: remoteParamController.saveRemoteParams(params, trackerFactory, preferences, logger); onRemoteParamSet();</technical_language>

Target:
void saveRemoteParams(OneSignalRemoteParams.Params remoteParams, OSTrackerFactory trackerFactory, OSSharedPreferences preferences, OSLogger logger) { this.remoteParams = remoteParams; OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_GT_FIREBASE_TRACKING_ENABLED, remoteParams.firebaseAnalytics ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_RESTORE_TTL_FILTER, remoteParams.restoreTTLFilter ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_CLEAR_GROUP_SUMMARY_CLICK, remoteParams.clearGroupOnSummaryClick ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_RECEIVE_RECEIPTS_ENABLED, remoteParams.receiveReceiptEnabled ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_UNSUBSCRIBE_WHEN_NOTIFICATIONS_DISABLED, remoteParams.unsubscribeWhenNotificationsDisabled ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, OneSignalPrefs.PREFS_OS_DISABLE_GMS_MISSING_PROMPT, remoteParams.disableGMSMissingPrompt ); OneSignalPrefs.saveBool( OneSignalPrefs.PREFS_ONESIGNAL, preferences.getOutcomesV2KeyName(), remoteParams.influenceParams.outcomesV2ServiceEnabled ); logger.debug("OneSignal saveInfluenceParams: " + remoteParams.influenceParams.toString()); trackerFactory.saveInfluenceParams(remoteParams.influenceParams); if (remoteParams.locationShared != null) { saveLocationShared(remoteParams.locationShared); OneSignal.setSharedLocation(remoteParams.locationShared); } if (remoteParams.requiresUserPrivacyConsent != null) savePrivacyConsentRequired(remoteParams.requiresUserPrivacyConsent); }