Skip to content

Commit e444fba

Browse files
authored
Merge pull request #7074 from seadowg/info-text
Update info in geoshape/trace
2 parents 792f407 + 144aafb commit e444fba

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

geo/src/main/java/org/odk/collect/geo/geopoly/InfoDialog.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import androidx.compose.foundation.rememberScrollState
1111
import androidx.compose.foundation.verticalScroll
1212
import androidx.compose.material.icons.Icons
1313
import androidx.compose.material.icons.automirrored.filled.Backspace
14-
import androidx.compose.material.icons.automirrored.filled.DirectionsWalk
1514
import androidx.compose.material.icons.filled.AddLocation
1615
import androidx.compose.material.icons.filled.Delete
1716
import androidx.compose.material.icons.filled.TouchApp
@@ -81,15 +80,12 @@ fun InfoContent(
8180
GeoPolyViewModel.RecordingMode.MANUAL, GeoPolyViewModel.RecordingMode.AUTOMATIC -> {
8281
if (fromSnackbar) {
8382
listOf(
84-
InfoDialog.InfoItem(Icons.AutoMirrored.Filled.DirectionsWalk, stringResource(string.physically_move_to_correct_info_item)),
8583
InfoDialog.InfoItem(Icons.Filled.TouchApp, stringResource(string.long_press_to_move_point_info_item)),
8684
InfoDialog.InfoItem(Icons.AutoMirrored.Filled.Backspace, stringResource(string.remove_last_point_info_item)),
8785
InfoDialog.InfoItem(Icons.Filled.Delete, stringResource(string.delete_entire_shape_info_item)),
8886
)
8987
} else {
9088
listOf(
91-
InfoDialog.InfoItem(Icons.Filled.AddLocation, stringResource(string.tap_to_add_a_point_info_item)),
92-
InfoDialog.InfoItem(Icons.AutoMirrored.Filled.DirectionsWalk, stringResource(string.physically_move_to_correct_info_item)),
9389
InfoDialog.InfoItem(Icons.Filled.TouchApp, stringResource(string.long_press_to_move_point_info_item)),
9490
InfoDialog.InfoItem(Icons.AutoMirrored.Filled.Backspace, stringResource(string.remove_last_point_info_item)),
9591
InfoDialog.InfoItem(Icons.Filled.Delete, stringResource(string.delete_entire_shape_info_item))

geo/src/main/res/layout/geopoly_layout.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
android:layout_height="wrap_content"
4242
android:layout_marginTop="@dimen/margin_standard"
4343
android:layout_marginEnd="@dimen/margin_standard"
44-
android:contentDescription="@string/show_how_to_modify_map"
44+
android:contentDescription="@string/show_my_location"
4545
android:theme="@style/Theme.Geo.ForceLightSurface.Overlay"
4646
app:layout_constraintEnd_toEndOf="parent"
4747
app:layout_constraintTop_toBottomOf="@id/location_status"
@@ -67,7 +67,7 @@
6767
android:layout_height="wrap_content"
6868
android:layout_marginTop="@dimen/margin_standard"
6969
android:layout_marginEnd="@dimen/margin_standard"
70-
android:contentDescription="@string/layer_data_file"
70+
android:contentDescription="@string/show_how_to_modify_map"
7171
android:theme="@style/Theme.Geo.ForceLightSurface.Overlay"
7272
app:layout_constraintEnd_toEndOf="parent"
7373
app:layout_constraintTop_toBottomOf="@id/layers"

geo/src/test/java/org/odk/collect/geo/geopoly/InfoContentTest.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class InfoContentTest {
7676

7777
assertInfo(
7878
listOf(
79-
org.odk.collect.strings.R.string.physically_move_to_correct_info_item,
8079
org.odk.collect.strings.R.string.long_press_to_move_point_info_item,
8180
org.odk.collect.strings.R.string.remove_last_point_info_item,
8281
org.odk.collect.strings.R.string.delete_entire_shape_info_item,
@@ -96,8 +95,6 @@ class InfoContentTest {
9695

9796
assertInfo(
9897
listOf(
99-
org.odk.collect.strings.R.string.tap_to_add_a_point_info_item,
100-
org.odk.collect.strings.R.string.physically_move_to_correct_info_item,
10198
org.odk.collect.strings.R.string.long_press_to_move_point_info_item,
10299
org.odk.collect.strings.R.string.remove_last_point_info_item,
103100
org.odk.collect.strings.R.string.delete_entire_shape_info_item,
@@ -117,7 +114,6 @@ class InfoContentTest {
117114

118115
assertInfo(
119116
listOf(
120-
org.odk.collect.strings.R.string.physically_move_to_correct_info_item,
121117
org.odk.collect.strings.R.string.long_press_to_move_point_info_item,
122118
org.odk.collect.strings.R.string.remove_last_point_info_item,
123119
org.odk.collect.strings.R.string.delete_entire_shape_info_item,
@@ -137,8 +133,6 @@ class InfoContentTest {
137133

138134
assertInfo(
139135
listOf(
140-
org.odk.collect.strings.R.string.tap_to_add_a_point_info_item,
141-
org.odk.collect.strings.R.string.physically_move_to_correct_info_item,
142136
org.odk.collect.strings.R.string.long_press_to_move_point_info_item,
143137
org.odk.collect.strings.R.string.remove_last_point_info_item,
144138
org.odk.collect.strings.R.string.delete_entire_shape_info_item,

strings/src/main/res/values/strings.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,6 @@
710710
<!-- Instruction in a list on how to delete the entire shape -->
711711
<string name="delete_entire_shape_info_item">Delete entire shape</string>
712712

713-
<!-- Instruction in a list on how to correct map features -->
714-
<string name="physically_move_to_correct_info_item">Physically move to correct</string>
715-
716713
<!-- Button text to close the instructions dialog -->
717714
<string name="done">Done</string>
718715

0 commit comments

Comments
 (0)