mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Simplify locale override (#5509)
This commit is contained in:
		| @@ -7,7 +7,6 @@ import android.content.BroadcastReceiver | ||||
| import android.content.Context | ||||
| import android.content.Intent | ||||
| import android.content.IntentFilter | ||||
| import android.content.res.Configuration | ||||
| import android.os.Build | ||||
| import android.webkit.WebView | ||||
| import androidx.core.app.NotificationManagerCompat | ||||
| @@ -28,7 +27,6 @@ import eu.kanade.tachiyomi.data.notification.Notifications | ||||
| import eu.kanade.tachiyomi.data.preference.PreferencesHelper | ||||
| import eu.kanade.tachiyomi.network.NetworkHelper | ||||
| import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate | ||||
| import eu.kanade.tachiyomi.util.system.LocaleHelper | ||||
| import eu.kanade.tachiyomi.util.system.notification | ||||
| import kotlinx.coroutines.flow.launchIn | ||||
| import kotlinx.coroutines.flow.onEach | ||||
| @@ -68,8 +66,6 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory { | ||||
|         setupAcra() | ||||
|         setupNotificationChannels() | ||||
|  | ||||
|         LocaleHelper.updateConfiguration(this, resources.configuration) | ||||
|  | ||||
|         ProcessLifecycleOwner.get().lifecycle.addObserver(this) | ||||
|  | ||||
|         // Show notification to disable Incognito Mode when it's enabled | ||||
| @@ -106,11 +102,6 @@ open class App : Application(), LifecycleObserver, ImageLoaderFactory { | ||||
|         MultiDex.install(this) | ||||
|     } | ||||
|  | ||||
|     override fun onConfigurationChanged(newConfig: Configuration) { | ||||
|         super.onConfigurationChanged(newConfig) | ||||
|         LocaleHelper.updateConfiguration(this, newConfig, true) | ||||
|     } | ||||
|  | ||||
|     override fun newImageLoader(): ImageLoader { | ||||
|         return ImageLoader.Builder(this).apply { | ||||
|             componentRegistry { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user