fix startup stack overflow
This commit is contained in:
+9
@@ -2,6 +2,7 @@ package eu.weblibre.flutter_mozilla_components
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.ContextWrapper
|
import android.content.ContextWrapper
|
||||||
|
import android.content.ComponentCallbacks
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.content.pm.ApplicationInfo
|
import android.content.pm.ApplicationInfo
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
@@ -62,6 +63,14 @@ class ProfileContext(private val base: Context, val relativePath: String) :
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun registerComponentCallbacks(callback: ComponentCallbacks) {
|
||||||
|
base.applicationContext.registerComponentCallbacks(callback)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun unregisterComponentCallbacks(callback: ComponentCallbacks) {
|
||||||
|
base.applicationContext.unregisterComponentCallbacks(callback)
|
||||||
|
}
|
||||||
|
|
||||||
override fun getFilesDir(): File {
|
override fun getFilesDir(): File {
|
||||||
return customFilesDir
|
return customFilesDir
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user