f5265cb207e9 — jgindin@chagall 2 years ago
Ensure we're dealing with the elevation preference.

Without this, we get into all sorts of trouble.
M Android/src/main/java/com/gindin/zmanim/android/prefs/LocationProviderPreferences.java +8 -6
@@ 142,13 142,15 @@ public class LocationProviderPreferences
 
       try {
 
-        final boolean usingElevation = (Boolean)newValue;
-        latLongElevation.setEnabled( usingElevation );
-        placeElevation.setEnabled( usingElevation );
+        if ( useElevation == preference ) {
+          final boolean usingElevation = (Boolean)newValue;
+          latLongElevation.setEnabled( usingElevation );
+          placeElevation.setEnabled( usingElevation );
 
-        if ( !usingElevation ) {
-          latLongElevation.setText( "" );
-          placeElevation.setText( "" );
+          if ( !usingElevation ) {
+            latLongElevation.setText( "" );
+            placeElevation.setText( "" );
+          }
         }
 
         // TODO: I'm trying to make the checkboxes behave like radio buttons. However, neither setting the