Set Accept-Language header when requesting SMS code.

This commit is contained in:
Greyson Parrelli
2023-01-10 17:24:35 -05:00
committed by Alex Hart
parent f2881843db
commit 40f9a25b87
3 changed files with 7 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ class VerifyAccountRepository(private val context: Application) {
if (mode == Mode.PHONE_CALL) {
accountManager.requestVoiceVerificationCode(Locale.getDefault(), Optional.ofNullable(captchaToken), pushChallenge, fcmToken)
} else {
accountManager.requestSmsVerificationCode(mode.isSmsRetrieverSupported, Optional.ofNullable(captchaToken), pushChallenge, fcmToken)
accountManager.requestSmsVerificationCode(Locale.getDefault(), mode.isSmsRetrieverSupported, Optional.ofNullable(captchaToken), pushChallenge, fcmToken)
}
}.subscribeOn(Schedulers.io())
}