Files
Retro_HA/app/src/main/java/com/example/retroha/BaseActivity.kt
Krzysztof Cieślik c122e0392a
All checks were successful
Update Wiki Documentation / generate-docs (push) Successful in 2m12s
docs: complete 100% kdoc coverage and update app branding
2026-06-14 07:23:17 +02:00

21 lines
636 B
Kotlin

package com.example.retroha
import android.app.Activity
import android.content.Context
import android.os.Bundle
import com.example.retroha.i18n.LocaleHelper
/**
* Base activity class that provides automatic localization support.
* All activities in the application should extend this class to ensure
* dynamic language changes are applied correctly.
*/
abstract class BaseActivity : Activity() {
override fun attachBaseContext(newBase: Context) {
super.attachBaseContext(LocaleHelper.setLocale(newBase))
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
}