Skip to content

Commit

Permalink
#1302 - change 'Seen nearby' to 'Expected nearby'
Browse files Browse the repository at this point in the history
  • Loading branch information
budowski committed Sep 14, 2023
1 parent c9cfa8f commit f5f377e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public View getView(final int position, View convertView, ViewGroup parent) {
if (((visionScore == null) || (frequencyScore == null)) || ((frequencyScore == 0) && (visionScore == 0))) {
visuallySimilar.setVisibility(View.GONE);
} else if ((visionScore > 0) && (frequencyScore > 0)) {
visuallySimilar.setText(R.string.visually_similar_seen_nearby);
visuallySimilar.setText(R.string.visually_similar_expected_nearby);
} else if (visionScore > 0) {
visuallySimilar.setText(R.string.visually_similar);
} else if (frequencyScore > 0) {
visuallySimilar.setText(R.string.seen_nearby);
visuallySimilar.setText(R.string.expected_nearby);
}

compareTaxon.setVisibility(mShowCompare ? View.VISIBLE : View.INVISIBLE);
Expand Down
2 changes: 1 addition & 1 deletion iNaturalist/src/main/res/layout/taxon_suggestion_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
android:textSize="12sp"
android:layout_marginTop="3dp"
android:text="TextView"
tools:text="@string/visually_similar_seen_nearby"/>
tools:text="@string/visually_similar_expected_nearby"/>
</LinearLayout>


Expand Down
2 changes: 2 additions & 0 deletions iNaturalist/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@
<string name="suggest_species_description">Suggest species based on visual similarity to photos.</string>
<string name="visually_similar">Visually Similar</string>
<string name="visually_similar_seen_nearby">Visually Similar / Seen Nearby</string>
<string name="visually_similar_expected_nearby">Visually Similar / Expected Nearby</string>
<string name="seen_nearby">Seen Nearby</string>
<string name="expected_nearby">Expected Nearby</string>
<string name="enlarge">Enlarge</string>
<!-- Label for a button that shows children of the current taxon, e.g. species within a genus or families within an order -->
<string name="view_children">View Children</string>
Expand Down

0 comments on commit f5f377e

Please sign in to comment.