Commit graph

3978 commits

Author SHA1 Message Date
translatewiki.net
5c0ed12491 Localisation updates from https://translatewiki.net. 2023-07-06 13:03:21 +02:00
AnkitThakur98
2593f4e1b6
Replaced junit.framework with org.junit (#5253) 2023-07-06 14:25:49 +09:00
Alfusainey Jallow
368e1c753d
Fix resource leak bug (#5251)
Signed-off-by: Alfusainey Jallow <alf.jallow@gmail.com>
2023-07-06 00:20:46 +05:30
translatewiki.net
532e5375c2 Localisation updates from https://translatewiki.net. 2023-07-03 13:02:59 +02:00
translatewiki.net
a4ef6bb3d3 Localisation updates from https://translatewiki.net. 2023-06-29 13:02:50 +02:00
translatewiki.net
fffb2ab175 Localisation updates from https://translatewiki.net. 2023-06-26 13:02:41 +02:00
translatewiki.net
95b4c3be82 Localisation updates from https://translatewiki.net. 2023-06-22 13:04:03 +02:00
Kaartic Sivaraam
f4e8de79fb
nearby: make sure places is initialized (#5241)
On taking a look at the following stack trace:

  java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
  at fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.updatePlaceList(NearbyParentFragment.java:777)
  at fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.lambda$initFilterChips$10$NearbyParentFragment(NearbyParentFragment.java:730)
  at fr.free.nrw.commons.nearby.fragments.-$$Lambda$NearbyParentFragment$AGol6SoJlvIYd45Vbz6tTjDiWU4.onCheckedChanged(Unknown Source:2)
  at android.widget.CompoundButton.setChecked(CompoundButton.java:235)
  at com.google.android.material.chip.Chip.setChecked(Chip.java:665)
  at android.widget.CompoundButton.toggle(CompoundButton.java:150)
  ...

... it seems clear the 'places' list is trying to be iterated
in the updatePlaceList method when it is empty. This is resulting
in an NPE and consequently an app crash.

Avoid the same by ensuring it is always initialized to an empty list.
2023-06-19 20:23:20 +09:00
translatewiki.net
00b69c6731 Localisation updates from https://translatewiki.net. 2023-06-19 13:01:47 +02:00
Ritika Pahwa
4a9101c614
FilePickerTest: fix failing unit test (#5237) 2023-06-16 19:41:07 +09:00
translatewiki.net
231b96d00e Localisation updates from https://translatewiki.net. 2023-06-15 13:04:03 +02:00
Ritika Pahwa
9a0f35c681
5196: Fix location stripped from EXIF metadata (#5227)
* MainActivity: add ACCESS_MEDIA_LOCATION permission check to retain location info in EXIF metadata

* remove redundant permission check and optimise imports

* FilePicker: switch to ACTION_OPEN_DOCUMENT intent for opening image files

* add a comment explaining the change

* implement GET_CONTENT photo picker toggle switch

* add location loss warning pop up

* SettingsFragment: modify the comment about GET_CONTENT takeover for more clarity
2023-06-15 10:05:55 +09:00
translatewiki.net
4d71c305f2 Localisation updates from https://translatewiki.net. 2023-06-12 13:11:57 +02:00
translatewiki.net
40f3e7fa7c Localisation updates from https://translatewiki.net. 2023-06-08 13:01:52 +02:00
tpettwa1
3f664d62f8
Added changes to readme.md + comments. (#5230)
* Update README.md

* Update LatLng.java

* Update LoginActivity.java

* Updated LoginActivity.java to feature javadoc syntax
2023-06-07 10:31:53 +09:00
translatewiki.net
cbc54c71d9 Localisation updates from https://translatewiki.net. 2023-06-05 13:01:39 +02:00
translatewiki.net
81fcc7bc0a Localisation updates from https://translatewiki.net. 2023-06-01 13:02:16 +02:00
translatewiki.net
55ce4c2515 Localisation updates from https://translatewiki.net. 2023-05-29 13:01:54 +02:00
translatewiki.net
e9b5bb8e7a Localisation updates from https://translatewiki.net. 2023-05-25 13:02:07 +02:00
translatewiki.net
4f1764fa12 Localisation updates from https://translatewiki.net. 2023-05-22 13:01:51 +02:00
translatewiki.net
d8cc62b8bc Localisation updates from https://translatewiki.net. 2023-05-18 13:02:02 +02:00
translatewiki.net
e5e07b64cc Localisation updates from https://translatewiki.net. 2023-05-15 13:01:45 +02:00
translatewiki.net
05de0c9454 Localisation updates from https://translatewiki.net. 2023-05-11 13:08:58 +02:00
translatewiki.net
955cbc96c4 Localisation updates from https://translatewiki.net. 2023-05-08 13:02:43 +02:00
translatewiki.net
0460a8c4e1 Localisation updates from https://translatewiki.net. 2023-05-01 13:01:58 +02:00
translatewiki.net
48e4c40ce3 Localisation updates from https://translatewiki.net. 2023-04-27 13:02:23 +02:00
translatewiki.net
9d0614e734 Localisation updates from https://translatewiki.net. 2023-04-24 13:02:39 +02:00
Kaartic Sivaraam
7568883e02
Avoid ambiguity in a string (#5210)
The phrase "Is this a photo of Place ...?" when placed along with an actual place
name could get confusing. For instance, "Is this a photo of Place More London?"

The casing of "Place" is especially confusing. So, tweak the phrase to avoid
this ambiguity.

Co-authored-by: Kaartic Sivaraam <kaartic.sn@zohocorp.com>
2023-04-18 15:09:18 +09:00
Ritika Pahwa
a116a17e7b
5204: Fix unit test UploadMediaPresenterTest.handleImageResult (#5206)
* UploadMediaPresenterTest: fix failing unit tests

* change else if to if condition to handle all cases

* include errorCodes 68 for duplicate image and 96 for image without exif

* optimise if statements

* remove redundant cases

* modify if statements to cover all cases

* simplify all if statements

* add removed comment again

* remove unused imports
2023-04-18 15:01:20 +09:00
translatewiki.net
2c7f2d05cd Localisation updates from https://translatewiki.net. 2023-04-17 13:01:39 +02:00
Ritika Pahwa
68ddcf0bc6
ReviewImageFragment: fix disappearing author name on changing orientation (#5209) 2023-04-16 23:21:11 +05:30
José Arias Canto
013809f46a
Fixes #5187: Fix App crashes when you click on Author Name (#5199)
* Add conditional on function onAuthorViewClicked for when there's not logged-in user

* Change media.getAuthor() for media.getUser()

* Change hardcoded URL for one given by the BuildConfig object
2023-04-13 19:59:50 +09:00
translatewiki.net
9fb13395f6 Localisation updates from https://translatewiki.net. 2023-04-10 13:02:19 +02:00
Nicolas Raoul
1af3297ae3 Disabled failing unit test as a temporary measure 2023-04-09 19:22:17 +09:00
translatewiki.net
67d2e7f1ab Localisation updates from https://translatewiki.net. 2023-04-06 13:02:51 +02:00
Ritika Pahwa
cf35307d9a
add constants file for map styles used across various fragments (#5200) 2023-04-05 16:05:05 +09:00
Priyank Shankar
07616485ae
Enable support toolbar for ProfileActivity and added a couple of unit… (#5188)
* Enable support toolbar for ProfileActivity and added a couple of unit tests

* Nit fixes

* Nit Fixes

* Minor styling changes in ContributionsFragment
2023-04-03 16:02:16 +09:00
Priyank Shankar
fc672dbd9b
Fixed #5181 Misleading warning title for duplicate file name (#5185)
* Added a string resource and changed the title of alertbox showDuplicatePicturePopup

* Removed duplicate_image_found from strings.xml as it is unused
2023-04-03 15:27:29 +09:00
Arman Navodia
92ecd61b6f
fixing: Duplicate filename notification completely replaces image-found-on-internet warning #5180 (#5192) 2023-04-03 15:08:24 +09:00
Ritika Pahwa
a5a65fc1ee
5191: Fix UI elements not conforming to dark mode (#5193)
* feedback dialog: fix black font in dark mode

* LocationPickerActivity: fix light map in dark mode

* Fix #5182 Switch From Mapbox to MapLibre (#5184)

* Fix #5182 Switch From Mapbox to MapLibre

* Fix #5182 Switch From Mapbox to MapLibre - Resolved requestFeature() issue

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on two screens

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on additional screens

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on notification screen

* Fix #5182 Switch From Mapbox to MapLibre - Test errors

* fix issue #5015 - custom image selector not identifying photo location (#5190)

Co-authored-by: Siva <doodsiva@gmail.com>

* feedback dialog: fix black font in dark mode

* LocationPickerActivity: fix light map in dark mode

* LocationPicker: use predefined style based on device theme

* LocationPickerActivityTest: add additional target exception in catch block

* LocationPickerConstants: remove extra newline introduced

---------

Co-authored-by: Kartikay Kaushik <93285364+kartikaykaushik14@users.noreply.github.com>
Co-authored-by: Siva Subramaniam <112970189+siva-subramaniam-v@users.noreply.github.com>
Co-authored-by: Siva <doodsiva@gmail.com>
2023-04-03 14:27:52 +09:00
Siva Subramaniam
0f1e526326
fix issue #5015 - custom image selector not identifying photo location (#5190)
Co-authored-by: Siva <doodsiva@gmail.com>
2023-03-31 12:21:07 +09:00
Kartikay Kaushik
8f8dcc0d52
Fix #5182 Switch From Mapbox to MapLibre (#5184)
* Fix #5182 Switch From Mapbox to MapLibre

* Fix #5182 Switch From Mapbox to MapLibre - Resolved requestFeature() issue

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on two screens

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on additional screens

* Fix #5182 Switch From Mapbox to MapLibre - Resolved dark mode issue on notification screen

* Fix #5182 Switch From Mapbox to MapLibre - Test errors
2023-03-31 09:31:58 +09:00
translatewiki.net
2989b73dee Localisation updates from https://translatewiki.net. 2023-03-30 13:02:07 +02:00
translatewiki.net
553c55b127 Localisation updates from https://translatewiki.net. 2023-03-27 17:30:06 +02:00
Manuel Cota
d1af26c8a8
Fix: user reset for Thanks screen (#5183)
Removed previous if statement. If the app is rotated, the Thanks message will disappear, but the username gets a reset for each new image reviewed.
2023-03-24 15:58:59 +09:00
translatewiki.net
4e50e6c76e Localisation updates from https://translatewiki.net. 2023-03-23 13:02:35 +01:00
translatewiki.net
f1f39a1946 Localisation updates from https://translatewiki.net. 2023-03-20 13:02:58 +01:00
translatewiki.net
9722628184 Localisation updates from https://translatewiki.net. 2023-03-16 13:02:14 +01:00
Kartikay Kaushik
9b0b936c62
Fix:5175 Upgraded Minimum SDK Version, Compile and Target SDK Version (#5177)
* Kotlin Version Upgraded to 1.6.10

* Kotlin Version Upgraded to 1.6.20

* Kotlin Version Upgraded to 1.7.20

* Fix:5175 Upgraded Minimum SDK Version, Compile and Target SDK Version
2023-03-16 18:02:35 +09:00
Chan Jun Da
66e15a17ef
Change UploadModel::createAndAddUploadItem to not duplicate new uploadItems of same UploadableFile (#5179) 2023-03-16 10:19:24 +09:00