diff --git a/source/RunnersField.mc b/source/RunnersField.mc index 3da4381..f59da31 100644 --- a/source/RunnersField.mc +++ b/source/RunnersField.mc @@ -70,14 +70,12 @@ var hasBackgroundColorOption = false; function onLayout(dc) { setDeviceSettingsDependentVariables(); - } - - function onShow() { - setDeviceSettingsDependentVariables(); + onUpdate(dc); } function onUpdate(dc) { - // reset color + setColors(); + // reset background dc.setColor(backgroundColor, backgroundColor); dc.fillRectangle(0, 0, 218, 218); @@ -93,8 +91,6 @@ var hasBackgroundColorOption = false; } is24Hour = System.getDeviceSettings().is24Hour; - setColors(); - paceStr = Ui.loadResource(Rez.Strings.pace); avgPaceStr = Ui.loadResource(Rez.Strings.avgpace); hrStr = Ui.loadResource(Rez.Strings.hr); @@ -298,8 +294,8 @@ var hasBackgroundColorOption = false; } } -//! A circular queue implementation. -//! @author Konrad Paumann + //! A circular queue implementation. + //! @author Konrad Paumann class DataQueue { //! the data array.