Philip Dukhov02/06/2023, 2:53 PM
, when activity is destroyed - in this particular case I could've get an activity with
and listen to the lifecycle, but this won't work generally, e.g. with
. The only idea that come to my mind is using
but it seems to be a bad practice and doesn't seems to be reliable - as I understand there's no guarantee it'll be called on time. Usually
is used in such situations, I've tried implementing it but Dagger doesn't seems to be checking it.
FunkyMuse02/07/2023, 9:04 AM
Philip Dukhov02/07/2023, 2:07 PM
- I need to cast context to activity and listen the lifecycle, right?
FunkyMuse02/07/2023, 2:09 PM
Philip Dukhov02/07/2023, 4:07 PM
FunkyMuse02/07/2023, 8:13 PM