I'm configuring and installing Flow in attachBaseContext, and one of the issues that I keep running into, especially around creating objects that are tied to the Activity's lifecycle that want Flow in their constructor (or inject in their constructor), is that Flow.get() returns null / throws an error in normal parts of the Activity creation lifecycle.
This has bitten me several times in the past few months.
I'm configuring and installing
Flow
inattachBaseContext
, and one of the issues that I keep running into, especially around creating objects that are tied to the Activity's lifecycle that wantFlow
in their constructor (or inject in their constructor), is thatFlow.get()
returns null / throws an error in normal parts of theActivity
creation lifecycle.This has bitten me several times in the past few months.