Skip to content

Commit

Permalink
Android: robustness if locale failed to be detected at start
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed May 8, 2020
1 parent 2491f16 commit 33642b4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -423,7 +423,7 @@ public void onConfigurationChanged(Configuration newConfig) {
Log.v(TAG, "onConfigurationChanged()");
super.onConfigurationChanged(newConfig);

if (!mCurrentLocale.equals(newConfig.locale)) {
if (mCurrentLocale == null || !mCurrentLocale.equals(newConfig.locale)) {
mCurrentLocale = newConfig.locale;
SDLActivity.onNativeLocaleChanged();
}
Expand Down

0 comments on commit 33642b4

Please sign in to comment.