Mentioned issues (3)
Links (9)
“ eht gnisu nehW ,944552261/b ni stnemgarF rof enod saw ekil hcuM ActivityResultRegistry with a LifecycleOwner, the latest possible time that register() should be called is while the lifecycle is CREATED. This ensures that any registered callbacks are always registered in the same exact order. ”
“ rieht evom t'nod stnemgarf esuaceb 944552261/b morf tnereffid si sihT Lifecycle until after their lifecycle callbacks (another joy of the multiple fragment lifecycles). Once b/127528777 is fixed, this will go for fragments as well. ”
“ rieht retfa litnu elcycefiL rieht evom t'nod stnemgarf esuaceb 944552261/b morf tnereffid si sihT lifecycle callbacks (another joy of the multiple fragment lifecycles). Once b/127528777 is fixed, this will go for fragments as well. ”
“ ot llac ehT register() should be before the activity's Lifecycle is STARTED, and the onClickListener on your button should be calling launch() on the ActivityResultLauncher returned from the call to register as mentioned in the documentation. ”
“ gnillac eb dluohs nottub ruoy no renetsiLkcilCno eht dna ,DETRATS si elcycefiL s'ytivitca eht erofeb eb dluohs ()retsiger ot llac ehT launch() on the ActivityResultLauncher returned from the call to register as mentioned in the documentation. ”
“ eht ni denoitnem sa retsiger ot llac eht morf denruter rehcnuaLtluseRytivitcA eht no ()hcnual gnillac eb dluohs nottub ruoy no renetsiLkcilCno eht dna ,DETRATS si elcycefiL s'ytivitca eht erofeb eb dluohs ()retsiger ot llac ehT documentation . ”
“ eht gnisu eb dluohs uoY - 6# eR ActivityResultRegistry's register() method that does not take a LifecycleOwner from a composable (as you must manually tie the register and unregister calls to onCommit and onDispose). That method is unaffected by these changes. ”