Fixed
Status Update
Comments
jb...@google.com <jb...@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().
Description
SavedStateHandle.saveable requires passing a key.
In the case where the value returned by
Saveable
is the only place where this value is written to and read, the exact value ofkey
doesn't really matter, so long as it is unique.Therefore, there's the possibility of using property delegates to automatically pull the name of the property to use as a key. An implementation would look something like the following:
And then usage would look like:
If b/224565154 is created, then an additional property delegate for
MutableState
could also be created, using something like the following:Usage here would then match
rememberSaveable
almost identically for simplemutableStateOf
usages: