diff --git a/CHANGELOG.md b/CHANGELOG.md index 71d0721..e59612e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [1.7.15] - build 230 2025-02-25 +### Fixed +- Coordinate attribute: fixed error editing coordinate; + ## [1.7.14] - build 229 2025-02-21 ### Fixed - Coordinate attribute: fixed "Navigate to target" dialog layout; diff --git a/android/src/main/java/org/openforis/collect/android/gui/input/CoordinateAttributeComponent.java b/android/src/main/java/org/openforis/collect/android/gui/input/CoordinateAttributeComponent.java index 50fdcc2..6180565 100644 --- a/android/src/main/java/org/openforis/collect/android/gui/input/CoordinateAttributeComponent.java +++ b/android/src/main/java/org/openforis/collect/android/gui/input/CoordinateAttributeComponent.java @@ -187,8 +187,12 @@ protected void updateEditableState() { } boolean editable = !isRecordEditLocked(); vh.srsSpinner.setEnabled(editable); - Views.toggleVisibility(vh.startStopButton, editable); - Views.toggleVisibility(vh.navigateButton, editable); + if (vh.startStopButton != null) { + Views.toggleVisibility(vh.startStopButton, editable); + } + if (vh.navigateButton != null) { + Views.toggleVisibility(vh.navigateButton, editable); + } } private int getNumericFieldInputType() {