Skip to content

Commit f5b635a

Browse files
committed
Fix OneSignal.setLanguage PrivacyConsentErrorMessage and OendingTaskRunnable
1 parent 98fbefd commit f5b635a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,11 +1596,11 @@ public void run() {
15961596

15971597
// If either the app context is null or the waiting queue isn't done (to preserve operation order)
15981598
if (appContext == null || shouldRunTaskThroughQueue()) {
1599-
addTaskToQueue(new PendingTaskRunnable(runSetExternalUserId));
1599+
addTaskToQueue(new PendingTaskRunnable(runSetLanguage));
16001600
return;
16011601
}
16021602

1603-
if (shouldLogUserPrivacyConsentErrorMessageForMethodName(OSTaskRemoteController.SET_LANGUAGE))
1603+
if (shouldLogUserPrivacyConsentErrorMessageForMethodName("setLanguage()"))
16041604
return;
16051605

16061606
LanguageProviderAppDefined languageProviderAppDefined = new LanguageProviderAppDefined(preferences);

0 commit comments

Comments
 (0)