Fixed
Status Update
Comments
il...@google.com <il...@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).
ap...@google.com <ap...@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().
jb...@google.com <jb...@google.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).
na...@google.com <na...@google.com> #5
@
I think that is intended for Animator. If you set the currentPlayTime
to 0 or the total duration the animator completes. We do some
Description
Component used: androidx.lifecycle.viewmodel
Version used: 2.5.0
Description:
Since lifecycle 2.5.0,
ViewModelProvider
createsViewModel
instance withViewModelFactory.create(modelClass, extra)
method if this method is implemented.In
ViewModelProvider.AndroidViewModelFactory
class case, it provides both ofcreate(modelClass, extra)
andcreate(modelClass)
, but it will always usecreate(modelClass, extra)
only.create(modelClass)
method is not used anymore if class is inherited fromViewModelProvider.AndroidViewModelFactory
,ViewModelProvider.AndroidViewModelFactory.create(modelClass)
create(modelClass)
method only instead ofcreate(modelClass, extra)
forViewModelProvider.AndroidViewModelFactory
class.