diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/ProfileContext.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/ProfileContext.kt index 4adfdb5d..2e82cf32 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/ProfileContext.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/ProfileContext.kt @@ -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 }