You are calling toString()
on ComputableLiveData
,
you have to call toString()
on myEntities
which will in turn call toString()
on the individual elements which are MyEntity
.
myViewModel.getAllData().observe( this, new Observer<List<MyEntity>>() {
@Override
public void onChanged(@Nullable List<MyEntity> myEntities) {
Log.d("TAG: ", "DATA CHANGED! " + myEntities.toString());
}
});
1
solved How to override `toString()` properly to get rid of hash code