mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-22 17:11:43 +00:00
Android: robustness if locale failed to be detected at start
This commit is contained in:
@@ -423,7 +423,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|||||||
Log.v(TAG, "onConfigurationChanged()");
|
Log.v(TAG, "onConfigurationChanged()");
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
|
|
||||||
if (!mCurrentLocale.equals(newConfig.locale)) {
|
if (mCurrentLocale == null || !mCurrentLocale.equals(newConfig.locale)) {
|
||||||
mCurrentLocale = newConfig.locale;
|
mCurrentLocale = newConfig.locale;
|
||||||
SDLActivity.onNativeLocaleChanged();
|
SDLActivity.onNativeLocaleChanged();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user