fix startup stack overflow

This commit is contained in:
Fabian Freund
2026-02-28 19:02:38 +01:00
parent 67c6222245
commit 51b53d900b
@@ -2,6 +2,7 @@ package eu.weblibre.flutter_mozilla_components
import android.content.Context
import android.content.ContextWrapper
import android.content.ComponentCallbacks
import android.content.SharedPreferences
import android.content.pm.ApplicationInfo
import android.os.Build
@@ -62,6 +63,14 @@ class ProfileContext(private val base: Context, val relativePath: String) :
return this
}
override fun registerComponentCallbacks(callback: ComponentCallbacks) {
base.applicationContext.registerComponentCallbacks(callback)
}
override fun unregisterComponentCallbacks(callback: ComponentCallbacks) {
base.applicationContext.unregisterComponentCallbacks(callback)
}
override fun getFilesDir(): File {
return customFilesDir
}