All checks were successful
Update Wiki Documentation / generate-docs (push) Successful in 2m12s
21 lines
636 B
Kotlin
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)
|
|
}
|
|
}
|