diff --git a/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java b/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java index 17bd09c57..3b4d66331 100644 --- a/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java +++ b/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java @@ -48,9 +48,6 @@ import com.fieldbook.tracker.dialogs.GeoNavCollectDialog; import com.fieldbook.tracker.interfaces.FieldSwitcher; import com.fieldbook.tracker.objects.FieldObject; -import com.fieldbook.tracker.objects.GeoNavHelper; -import com.fieldbook.tracker.objects.GoProWrapper; -import com.fieldbook.tracker.objects.InfoBarModel; import com.fieldbook.tracker.objects.InfoBarModel; import com.fieldbook.tracker.objects.RangeObject; import com.fieldbook.tracker.objects.TraitObject; @@ -71,7 +68,6 @@ import com.fieldbook.tracker.utilities.SoundHelperImpl; import com.fieldbook.tracker.utilities.TapTargetUtil; import com.fieldbook.tracker.utilities.Utils; -import com.fieldbook.tracker.utilities.VibrateUtil; import com.fieldbook.tracker.utilities.VerifyPersonHelper; import com.fieldbook.tracker.utilities.VibrateUtil; import com.fieldbook.tracker.views.CollectInputView; diff --git a/app/src/main/java/com/fieldbook/tracker/activities/FieldEditorActivity.java b/app/src/main/java/com/fieldbook/tracker/activities/FieldEditorActivity.java index 5ab83625f..63bb4d071 100644 --- a/app/src/main/java/com/fieldbook/tracker/activities/FieldEditorActivity.java +++ b/app/src/main/java/com/fieldbook/tracker/activities/FieldEditorActivity.java @@ -50,7 +50,6 @@ import com.fieldbook.tracker.location.GPSTracker; import com.fieldbook.tracker.objects.FieldFileObject; import com.fieldbook.tracker.objects.FieldObject; -import com.fieldbook.tracker.objects.GeoNavHelper; import com.fieldbook.tracker.preferences.GeneralKeys; import com.fieldbook.tracker.utilities.DocumentTreeUtil; import com.fieldbook.tracker.utilities.FieldSwitchImpl; @@ -106,8 +105,6 @@ public class FieldEditorActivity extends ThemedActivity private GPSTracker mGpsTracker; - private GeoNavHelper geoNavHelper; - @Inject DataHelper database; @@ -181,8 +178,6 @@ public void onCreate(Bundle savedInstanceState) { fieldList = findViewById(R.id.myList); mAdapter = new FieldAdapter(thisActivity, database.getAllFieldObjects(), fieldSwitcher); fieldList.setAdapter(mAdapter); - - geoNavHelper = new GeoNavHelper(this); } private void showFileDialog() { diff --git a/app/src/main/java/com/fieldbook/tracker/utilities/GeoNavHelper.kt b/app/src/main/java/com/fieldbook/tracker/utilities/GeoNavHelper.kt index 3bc5ce216..7356472ce 100644 --- a/app/src/main/java/com/fieldbook/tracker/utilities/GeoNavHelper.kt +++ b/app/src/main/java/com/fieldbook/tracker/utilities/GeoNavHelper.kt @@ -145,7 +145,7 @@ class GeoNavHelper @Inject constructor(private val controller: CollectController lastPlotIdNav = null currentFixQuality = false if (audioOnDrop) { - (controller.getContext() as? CollectActivity)?.showGeoNavPrecisionLossDialog() + (controller.getContext() as? CollectActivity)?.showLocationPrecisionLossDialog() controller.getSoundHelper().playError() controller.getVibrator().vibrate(1000L) }