For #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.
pull/184/head
Michael Comella 4 years ago committed by Michael Comella
parent 42cca072e2
commit d767cd199e

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

Loading…
Cancel
Save