How would I check the value of a MutableLiveData&l...
# announcements
s
How would I check the value of a MutableLiveData<Boolean> and if it's null, default it to false?
a
can you post your val/var declaration code snippet?
i
Is there a reason you're not using the MutableLiveData constructor that takes a default value?