2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/13959: fix startup crash by using arg Context.

The `context` member function returns null in attachBaseContext so we
need to use the Context that's being attached instead.
This commit is contained in:
Michael Comella 2020-09-28 15:42:14 -07:00 committed by Michael Comella
parent 53bd004f55
commit a50cf27648

View File

@ -756,7 +756,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
} }
override fun attachBaseContext(base: Context) { override fun attachBaseContext(base: Context) {
components.strictMode.resetAfter(StrictMode.allowThreadDiskReads()) { base.components.strictMode.resetAfter(StrictMode.allowThreadDiskReads()) {
super.attachBaseContext(base) super.attachBaseContext(base)
} }
} }