Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d0e5709
Move geopoly UI code to Fragment
seadowg Dec 2, 2025
9fa9189
Remove unused title from geotrace view
seadowg Dec 2, 2025
9a0f518
Extract super class for widget answer dialogs
seadowg Dec 3, 2025
ac334ab
Move WidgetAnswerDialogFragment to its own file
seadowg Dec 3, 2025
724ebcd
Fix references in tests
seadowg Dec 3, 2025
bac1082
Convert intent to constructor params
seadowg Dec 4, 2025
c0f12a1
Add GeoPolyDialogFragment that handles read only and output mode
seadowg Dec 4, 2025
fffe330
Generalize test helper
seadowg Dec 5, 2025
c2c1dfb
Add allow-mock-accuracy support to GeoPolyDialogFragment
seadowg Dec 8, 2025
969e160
Add existing answer support to GeoPolyDialogFragment
seadowg Dec 8, 2025
1af0f0a
Fix OutputMode matching
seadowg Dec 8, 2025
eb56037
Add result handling to GeoPolyDialogFragment
seadowg Dec 8, 2025
10b47a4
Spike out using Fragment instead of Activity for geotrace
seadowg Dec 8, 2025
f55d1d9
Fix tests
seadowg Dec 9, 2025
a9a183b
Remove external Activity integration points for geotrace
seadowg Dec 9, 2025
1f1e00b
Rework requestGeoTrace to work for both geopoly types
seadowg Dec 9, 2025
96a9bcc
Use dialog for geoshape as well
seadowg Dec 9, 2025
dddfb56
Remove external Activity integration points for geoshape
seadowg Dec 9, 2025
9314603
Remove GeoPolyActivity
seadowg Dec 9, 2025
f240b47
Fix Fragment recreation bug
seadowg Dec 9, 2025
2a59105
Pull out MockFragmentFactory
seadowg Dec 9, 2025
88c3947
Add assertDisabled
seadowg Dec 11, 2025
e2ad4de
Make language for constants consistent
seadowg Dec 11, 2025
37f8a7a
Correct typo
seadowg Dec 11, 2025
ecfbed3
Move helper to test helpers
seadowg Dec 11, 2025
98cc919
Simplify inputPolygon
seadowg Dec 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove GeoPolyActivity
  • Loading branch information
seadowg committed Dec 9, 2025
commit 9314603d0953f4115e40b83ddba8d8e52227f1b2
4 changes: 0 additions & 4 deletions geo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
android:name=".geopoint.GeoPointMapActivity"
android:theme="@style/Theme.MaterialComponents" />

<activity
android:name=".geopoly.GeoPolyActivity"
android:theme="@style/Theme.MaterialComponents" />

<activity
android:name=".geopoint.GeoPointActivity"
android:theme="@style/Theme.MaterialComponents" />
Expand Down
2 changes: 0 additions & 2 deletions geo/src/main/java/org/odk/collect/geo/DaggerSetup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import org.odk.collect.geo.geopoint.GeoPointDialogFragment
import org.odk.collect.geo.geopoint.GeoPointMapActivity
import org.odk.collect.geo.geopoint.GeoPointViewModelFactory
import org.odk.collect.geo.geopoint.LocationTrackerGeoPointViewModel
import org.odk.collect.geo.geopoly.GeoPolyActivity
import org.odk.collect.geo.geopoly.GeoPolyFragment
import org.odk.collect.geo.selection.SelectionMapFragment
import org.odk.collect.location.LocationClient
Expand Down Expand Up @@ -46,7 +45,6 @@ interface GeoDependencyComponent {
}

fun inject(geoPointMapActivity: GeoPointMapActivity)
fun inject(geoPolyActivity: GeoPolyActivity)
fun inject(geoPointDialogFragment: GeoPointDialogFragment)
fun inject(geoPointActivity: GeoPointActivity)
fun inject(selectionMapFragment: SelectionMapFragment)
Expand Down
56 changes: 0 additions & 56 deletions geo/src/main/java/org/odk/collect/geo/geopoly/GeoPolyActivity.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ public GeoPolyFragment(@Nullable OutputMode outputMode, Boolean readOnly, Boolea
this.retainMockAccuracy = retainMockAccuracy;
}

public GeoPolyFragment(@Nullable OutputMode outputMode) {
this(outputMode, false, false, null);
}

@Override
public void onAttach(@NonNull Context context) {
super.onAttach(context);
Expand Down
12 changes: 0 additions & 12 deletions geo/src/main/res/layout/activity_geopoly_layout.xml

This file was deleted.

Loading