mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-11-01 15:48:14 +00:00
Fixed crash when value was int instead of float
This commit is contained in:
@@ -65,7 +65,7 @@ class HomeAssistantNumericFactory extends WatchUi.PickerFactory {
|
||||
public function getDrawable(index as Number, selected as Boolean) as Drawable? {
|
||||
var value = getValue(index);
|
||||
var text = "No item";
|
||||
if (value instanceof Float) {
|
||||
if (value instanceof Lang.Float) {
|
||||
text = value.format(mFormatString);
|
||||
}
|
||||
return new WatchUi.Text({:text=>text, :color=>Graphics.COLOR_WHITE,
|
||||
|
||||
Reference in New Issue
Block a user