From 6d073d25a36d05f86cd6fd0a5a5920004d0da3c8 Mon Sep 17 00:00:00 2001
From: Aditya-Srivastav <54016427+4D17Y4@users.noreply.github.com>
Date: Thu, 19 Aug 2021 18:26:45 +0530
Subject: [PATCH] [GSoC] Update Dialog and Fix failing tests (#4564)
* Update Dialog and Fix failing tests
* Dialog Fix
---
app/src/main/res/values/strings.xml | 2 +-
.../contributions/ContributionsListFragmentUnitTests.kt | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b594d182d..599a2a294 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -646,7 +646,7 @@ Upload your first media by tapping on the add button.
Back
Welcome to Custom Picture Selector
This picker shows differently pictures that are already to Commons.
- Unlike the picture on the left, the picture on the right has the Commons logo indicating it is already uploaded.
+ 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.
Awesome
This image has already been uploaded to Commons.
WLM
diff --git a/app/src/test/kotlin/fr/free/nrw/commons/contributions/ContributionsListFragmentUnitTests.kt b/app/src/test/kotlin/fr/free/nrw/commons/contributions/ContributionsListFragmentUnitTests.kt
index b0c7734f8..7230633f0 100644
--- a/app/src/test/kotlin/fr/free/nrw/commons/contributions/ContributionsListFragmentUnitTests.kt
+++ b/app/src/test/kotlin/fr/free/nrw/commons/contributions/ContributionsListFragmentUnitTests.kt
@@ -87,6 +87,9 @@ class ContributionsListFragmentUnitTests {
@Mock
private lateinit var fabGallery: FloatingActionButton
+ @Mock
+ private lateinit var fabCustomGallery: FloatingActionButton
+
@Mock
private lateinit var newConfig: Configuration
@@ -119,6 +122,7 @@ class ContributionsListFragmentUnitTests {
Whitebox.setInternalState(fragment, "fabPlus", fabPlus)
Whitebox.setInternalState(fragment, "fabCamera", fabCamera)
Whitebox.setInternalState(fragment, "fabGallery", fabGallery)
+ Whitebox.setInternalState(fragment, "fabCustomGallery", fabCustomGallery)
Whitebox.setInternalState(fragment, "fab_layout", fabLayout)
Whitebox.setInternalState(
fragment,