individual-it / BatteryGuesstimate

Battery estimation for Garmin sportwatches
GNU General Public License v3.0
11 stars 1 forks source link

show simple loading indicator while loading data for graph #15

Closed individual-it closed 2 years ago

individual-it commented 2 years ago

loading the graph can take a while, so show a simple loading indicator because it's impossible to get out of a function and call onUpdate() while the function is working there was some refactoring needed now it's not the getGraphData function doing the looping but onUpdate() calls itself (by using WatchUi.requestUpdate();) till the reading of all the data is done