manlan
06/28/2020, 1:04 PMstopProgress()
in each of the observers. Is there a better way? 😞 Can I make this generic so I do not have to do this in each and every fragment?Zach Klippenstein (he/him) [MOD]
06/28/2020, 1:12 PMmanlan
06/28/2020, 1:42 PMZach Klippenstein (he/him) [MOD]
06/28/2020, 1:58 PMApiResult
as the return type for fetchItems
.manlan
06/28/2020, 2:18 PMsafeApiCall
function that returns Pair
and directly call the existing private safeApiCall
from the Repository
?Zach Klippenstein (he/him) [MOD]
06/28/2020, 2:41 PMsafeApiCall
after that.manlan
06/28/2020, 2:53 PMZach Klippenstein (he/him) [MOD]
06/28/2020, 3:23 PMmanlan
06/28/2020, 3:51 PMJohnV
06/28/2020, 7:18 PMviewLifecycleOwner
instead of this
when calling observe
from your fragment.