Fixed
Status Update
Comments
se...@google.com <se...@google.com>
se...@google.com <se...@google.com> #2
Also we need to add following for activities and fragments using VIewModel with to start:
## Android architecture components: ViewModel
-keepclassmembers class * extends android.arch.lifecycle.ViewModel {
<init>(...);
}
## Android architecture components: ViewModel
-keepclassmembers class * extends android.arch.lifecycle.ViewModel {
<init>(...);
}
Description
Version used: alpha-7
Devices/Android versions reproduced on: Nougat
The constructor of MediatorLiveData.Source always wraps mObserver with another observer. This causes the comparison in addSource to fail, so if you add a source with the exact same arguments (which the documentation allows) you will get an exception regardless.