Fixed
Status Update
Comments
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Jeremy, is this still an issue? I think the problem was that you had two transitions targeting the same View for the same action (e.g. two Slide() transitions).
il...@google.com <il...@google.com> #3
I have a similar issue with plain AnimatorSet:
set.start()
set.pause()
set.setCurrentPlayTime(100)
set.setCurrentPlayTime(0)
set.setCurrentPlayTime(100)
set.resume()
doesn't play animation in resume().
me...@gmail.com <me...@gmail.com> #4
Should clarify that if I filter out setCurrentPlayTime(0)
(or replace it with setCurrentPlayTime(1)
) it works well.
Also even with setCurrentPlayTime(0)
, onAnimationEnd
is notified with correct delay (as if the animation has played).
Description
Component used: ViewModel Version used: 2.3.1 Devices/Android versions reproduced on: Emulator API 29
I just want to share a
ViewModel
object across navigation changes (using Jetpack Compose). I mean,ScreenA
is instantiatingMyViewModel
usingviewModel()
function. When I navigate (using Jetpack Navigation for Compose) toScreenB
and callviewModel()
from there, it returns a different instance.My current solution is a little ugly...
There's no
viewModel()
method that takes aViewModelStoreOwner
. It just always uses theLocalViewModelStoreOwner.current
.