Skip to content

Commit 6d073d2

Browse files
authored
[GSoC] Update Dialog and Fix failing tests (commons-app#4564)
* Update Dialog and Fix failing tests * Dialog Fix
1 parent 68f2b65 commit 6d073d2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ Upload your first media by tapping on the add button.</string>
646646
<string name="back">Back</string>
647647
<string name="welcome_custom_picture_selector_text">Welcome to Custom Picture Selector</string>
648648
<string name="custom_selector_info_text1">This picker shows differently pictures that are already to Commons.</string>
649-
<string name="custom_selector_info_text2">Unlike the picture on the left, the picture on the right has the Commons logo indicating it is already uploaded.</string>
649+
<string name="custom_selector_info_text2">Unlike the picture on the left, the picture on the right has the Commons logo indicating it is already uploaded. \n Touch and hold for image preview.</string>
650650
<string name="welcome_custom_selector_ok">Awesome</string>
651651
<string name="custom_selector_already_uploaded_image_text">This image has already been uploaded to Commons.</string>
652652
<string name="place_state_wlm">WLM</string>

app/src/test/kotlin/fr/free/nrw/commons/contributions/ContributionsListFragmentUnitTests.kt

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ class ContributionsListFragmentUnitTests {
8787
@Mock
8888
private lateinit var fabGallery: FloatingActionButton
8989

90+
@Mock
91+
private lateinit var fabCustomGallery: FloatingActionButton
92+
9093
@Mock
9194
private lateinit var newConfig: Configuration
9295

@@ -119,6 +122,7 @@ class ContributionsListFragmentUnitTests {
119122
Whitebox.setInternalState(fragment, "fabPlus", fabPlus)
120123
Whitebox.setInternalState(fragment, "fabCamera", fabCamera)
121124
Whitebox.setInternalState(fragment, "fabGallery", fabGallery)
125+
Whitebox.setInternalState(fragment, "fabCustomGallery", fabCustomGallery)
122126
Whitebox.setInternalState(fragment, "fab_layout", fabLayout)
123127
Whitebox.setInternalState(
124128
fragment,

0 commit comments

Comments
 (0)