fix(i18n): force context recreation on locale change and fix hardcoded strings
All checks were successful
Update Wiki Documentation / generate-docs (push) Successful in 2m12s

This commit is contained in:
Krzysztof Cieślik
2026-06-14 06:18:19 +02:00
parent 9a9f9e518f
commit 3d207912cb
5 changed files with 39 additions and 16 deletions

View File

@@ -1,10 +1,15 @@
package com.example.retroha
import android.app.Activity
import android.content.Context
import android.os.Bundle
import com.example.retroha.i18n.LocaleHelper
abstract class BaseActivity : Activity() {
override fun attachBaseContext(newBase: Context) {
super.attachBaseContext(LocaleHelper.setLocale(newBase))
}
override fun onCreate(savedInstanceState: Bundle?) {
LocaleHelper.setLocale(this)
super.onCreate(savedInstanceState)
}
}