code: private void checkLocaleChange(Context context) {
          if (!isCurrentLanguageSetting(context, currentLanguage)) {
              sendOnBeforeLocaleChangedEvent();
              isLocalizationChanged = true;
              callDummyActivity();
              activity.recreate();
          }
      }
docs: Check if locale has change while this activity was run to back stack.