v79
10/22/2022, 11:14 AMgetCurrentOdometer
is a suspend function (because, I think, all repository functions which call the DB are supposed to be suspend?) Note that I don't want a LiveData result - it's not going to change value suddenly!v79
10/22/2022, 11:16 AMinitialOdometerReading
and populate it in the init { }
block - well, that's too late. The screen has been drawn by then, with the wrong value.Michael Marshall
10/23/2022, 5:45 AMv79
10/23/2022, 11:21 AM