Skip to content

Commit

Permalink
Fixed problem loading skills when the user has not set a language exp…
Browse files Browse the repository at this point in the history
…licitly (#1563)
  • Loading branch information
arundhatigupta authored and mariobehling committed Jul 20, 2018
1 parent c3f5ed0 commit 2cad496
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -157,7 +157,11 @@ class LoginPresenter(loginActivity: LoginActivity) : ILoginPresenter, ILoginMode
utilModel.putBooleanPref(Constant.ENTER_SEND, settings.enterSend)
utilModel.putBooleanPref(Constant.SPEECH_ALWAYS, settings.speechAlways)
utilModel.putBooleanPref(Constant.SPEECH_OUTPUT, settings.speechOutput)
utilModel.setLanguage(settings.language)
if (settings.language == "default") {
utilModel.setLanguage("en")
} else {
utilModel.setLanguage(settings.language)
}
}

loginView?.onLoginSuccess(message)
Expand Down

0 comments on commit 2cad496

Please sign in to comment.