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,10 +1,16 @@
package org.koitharu.kotatsu.core.ui
import android.content.Context
import androidx.core.content.ContextCompat
import androidx.lifecycle.LifecycleService
import leakcanary.AppWatcher
abstract class BaseService : LifecycleService() {
override fun attachBaseContext(newBase: Context) {
super.attachBaseContext(ContextCompat.getContextForLanguage(newBase))
}
override fun onDestroy() {
super.onDestroy()
AppWatcher.objectWatcher.watch(