Fix locale changing

This commit is contained in:
Koitharu
2025-02-24 19:49:51 +02:00
parent 30d1d47cdc
commit e98f5b9d54
13 changed files with 58 additions and 11 deletions

View File

@@ -1,5 +1,12 @@
package org.koitharu.kotatsu.core.ui
import android.content.Context
import androidx.core.content.ContextCompat
import androidx.lifecycle.LifecycleService
abstract class BaseService : LifecycleService()
abstract class BaseService : LifecycleService() {
override fun attachBaseContext(newBase: Context) {
super.attachBaseContext(ContextCompat.getContextForLanguage(newBase))
}
}