Mathias Brandt
06/27/2018, 9:50 AMvar matches = liveMatches.value
if(matches == null) {
matches = ArrayList()
}
Can be shortened to this:
var matches = liveMatches.value ?: ArrayList()
gildor
06/27/2018, 9:58 AMList?.orEmpty()
, but you cannot use it in your case, it returns immutable empty listMathias Brandt
06/27/2018, 10:47 AM