[GSoC] Update Dialog and Fix failing tests (#4564)

* Update Dialog and Fix failing tests

* Dialog Fix
This commit is contained in:
Aditya-Srivastav 2021-08-19 18:26:45 +05:30 committed by GitHub
parent 68f2b65c5b
commit 6d073d25a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -646,7 +646,7 @@ Upload your first media by tapping on the add button.</string>
<string name="back">Back</string> <string name="back">Back</string>
<string name="welcome_custom_picture_selector_text">Welcome to Custom Picture Selector</string> <string name="welcome_custom_picture_selector_text">Welcome to Custom Picture Selector</string>
<string name="custom_selector_info_text1">This picker shows differently pictures that are already to Commons.</string> <string name="custom_selector_info_text1">This picker shows differently pictures that are already to Commons.</string>
<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> <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>
<string name="welcome_custom_selector_ok">Awesome</string> <string name="welcome_custom_selector_ok">Awesome</string>
<string name="custom_selector_already_uploaded_image_text">This image has already been uploaded to Commons.</string> <string name="custom_selector_already_uploaded_image_text">This image has already been uploaded to Commons.</string>
<string name="place_state_wlm">WLM</string> <string name="place_state_wlm">WLM</string>

View file

@ -87,6 +87,9 @@ class ContributionsListFragmentUnitTests {
@Mock @Mock
private lateinit var fabGallery: FloatingActionButton private lateinit var fabGallery: FloatingActionButton
@Mock
private lateinit var fabCustomGallery: FloatingActionButton
@Mock @Mock
private lateinit var newConfig: Configuration private lateinit var newConfig: Configuration
@ -119,6 +122,7 @@ class ContributionsListFragmentUnitTests {
Whitebox.setInternalState(fragment, "fabPlus", fabPlus) Whitebox.setInternalState(fragment, "fabPlus", fabPlus)
Whitebox.setInternalState(fragment, "fabCamera", fabCamera) Whitebox.setInternalState(fragment, "fabCamera", fabCamera)
Whitebox.setInternalState(fragment, "fabGallery", fabGallery) Whitebox.setInternalState(fragment, "fabGallery", fabGallery)
Whitebox.setInternalState(fragment, "fabCustomGallery", fabCustomGallery)
Whitebox.setInternalState(fragment, "fab_layout", fabLayout) Whitebox.setInternalState(fragment, "fab_layout", fabLayout)
Whitebox.setInternalState( Whitebox.setInternalState(
fragment, fragment,