isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:
Ah, to hell with it… I just went and speculatively fixed what I thought was wrong, because there's no point in keeping it in a potentially broken way.
Hopefully it is *the* fix :-)
(Basically, if you have a Fragment in a RecyclerView, and the user scrolls away from it, Android can aggressively unload it, so you shouldn't keep a long-living reference to it anyway. So I'm just copying out all the data I need from a fragment at the point where I'm creating my long-living thing.)