Fixed
Status Update
Comments
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #2
Request the team to take a look at the feature request.
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit b415585af5d835185c82f26af67d778e18fac08a
Author: Sanura N'Jaka <sanura@google.com>
Date: Wed Aug 31 00:17:51 2022
Include constructors for MediatorLiveData
Since MediatorLiveData extends MutableLiveData,
which includes a constructor that allows for
an initial value to be set, we want to add such
a constructor to MediatorLiveData as well.
RelNote: "`MediatorLiveData` now includes a
constructor to set an initial value."
Test: all MediatorLiveDataTest tests pass
Bug: 151244085
Change-Id: Ib6cc5fa9e5005642b63d563aa0f3b31162ae0063
M lifecycle/lifecycle-livedata/src/test/java/androidx/lifecycle/MediatorLiveDataTest.java
M lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/MediatorLiveData.java
M lifecycle/lifecycle-livedata/api/restricted_current.txt
M lifecycle/lifecycle-livedata/api/public_plus_experimental_current.txt
M lifecycle/lifecycle-livedata/build.gradle
M lifecycle/lifecycle-livedata/api/current.txt
https://android-review.googlesource.com/2199794
Branch: androidx-main
commit b415585af5d835185c82f26af67d778e18fac08a
Author: Sanura N'Jaka <sanura@google.com>
Date: Wed Aug 31 00:17:51 2022
Include constructors for MediatorLiveData
Since MediatorLiveData extends MutableLiveData,
which includes a constructor that allows for
an initial value to be set, we want to add such
a constructor to MediatorLiveData as well.
RelNote: "`MediatorLiveData` now includes a
constructor to set an initial value."
Test: all MediatorLiveDataTest tests pass
Bug: 151244085
Change-Id: Ib6cc5fa9e5005642b63d563aa0f3b31162ae0063
M lifecycle/lifecycle-livedata/src/test/java/androidx/lifecycle/MediatorLiveDataTest.java
M lifecycle/lifecycle-livedata/src/main/java/androidx/lifecycle/MediatorLiveData.java
M lifecycle/lifecycle-livedata/api/restricted_current.txt
M lifecycle/lifecycle-livedata/api/public_plus_experimental_current.txt
M lifecycle/lifecycle-livedata/build.gradle
M lifecycle/lifecycle-livedata/api/current.txt
il...@google.com <il...@google.com> #4
This has been added internally and will be available in Lifecycle 2.6.0-alpha02.
na...@google.com <na...@google.com> #5
This bug was linked in a change in the following release(s):
androidx.lifecycle:lifecycle-livedata:2.6.0-alpha02
Description
MediatorLiveData extends MutableLiveData that has a constructor to set the initial value. Seems obvious you need same constructor for MediatorLiveData.