Skip to content
Permalink
Browse files

Android: robustness if locale failed to be detected at start

  • Loading branch information
1bsyl committed May 8, 2020
1 parent 2491f16 commit 33642b47b28bbb326d347f49c8ce6cde42168eff
Showing with 1 addition and 1 deletion.
  1. +1 −1 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -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();
}

0 comments on commit 33642b4

Please sign in to comment.