Commit graph

5934 commits

Author SHA1 Message Date
translatewiki.net
cdb2e4278c Localisation updates from https://translatewiki.net. 2023-07-20 13:01:53 +02:00
translatewiki.net
d75f693435 Localisation updates from https://translatewiki.net. 2023-07-17 13:02:16 +02:00
translatewiki.net
b86a92ad11 Localisation updates from https://translatewiki.net. 2023-07-13 13:02:46 +02:00
translatewiki.net
0b25c07fcd Localisation updates from https://translatewiki.net. 2023-07-10 13:04:12 +02:00
Kaartic Sivaraam
ff09c3487f
Try fixing pipeline after Gradle build changes 2023-07-08 23:49:55 +05:30
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
Siva Subramaniam
1911b8b957 upgrade AGP to 8.0.2, enable gradle build cache and change java version to 17 in github workflow 2023-06-26 12:56:40 +05:30
Siva Subramaniam
c4d4cbeae2 Merge branch 'master' of https://github.com/siva-subramaniam-v/apps-android-commons into gradle-version-upgrade 2023-06-26 12:15:38 +05:30
translatewiki.net
95b4c3be82 Localisation updates from https://translatewiki.net. 2023-06-22 13:04:03 +02:00
Matija Nalis
b1a272ef49
allow running GitHub workflow manually (#5248) 2023-06-22 09:55:44 +05:30
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
Kaartic Sivaraam
4cb3b0cfe9
Reduce minSdk back to 21 (#5236)
Commit 0f0358f22 (Bump minSdk to 29, 2023-04-30) bumped the minSdk to
29 since it was found to be necessary for publishing the app to Play
Store.

On futher analysis[1], it seems like that might actually not be necessary.
The crux is:

  1. We (rightly) answer "No" to the Play Console question:

       "Does your app access location in the background in APKs or
        app bundles targeting Android 9 (Pie) or older (SDK level 28 or lower)?"

  2. We do not request for the ACCESS_BACKGROUND_LOCATION permission.

So, it should be safe for us to have the minSdkVersion as 21 itself. If
again we face any rejection of the app update, let us handle it at that
point. I clearly am not able to see any valid reason for Play store to
reject the app update.

[1]: https://github.com/commons-app/apps-android-commons/issues/5223#issuecomment-1569554999

Co-authored-by: Kaartic Sivaraam <kaartic.sn@zohocorp.com>
2023-06-16 15:52:15 +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
Siva Subramaniam
a280f79f36 remove redundant comment in module level build.gradle file 2023-05-03 11:50:08 +05:30
Siva Subramaniam
368701ec59 fixes #5208: gradle build fails with android studio flamingo update 2023-05-03 11:12:28 +05:30
translatewiki.net
0460a8c4e1 Localisation updates from https://translatewiki.net. 2023-05-01 13:01:58 +02:00
Kaartic Sivaraam
1649d1e2ce Changelog for v4.1.0
Gathered the significant release note entries by going through the commits.
2023-04-30 19:07:32 +05:30
Kaartic Sivaraam
61e2a7177b Versioning for v4.1.0
We bump the version code directly to 1034 since v4.0.4 and v4.0.5 took
up the codes b/w 1029 and 1034.
2023-04-30 19:07:31 +05:30
Kaartic Sivaraam
9e1752dfe1 CHANGELOG: incorporate changelog for v4.0.4 and v4.0.5 from 4.0-release branch
Corresponding commits:

- 8053188fc (Added note for v4.0.5, 2022-08-23)
- f03b7dd8d (Changelog for v4.0.5, 2022-08-22)
- ef34302e6 (Changelog for v4.0.4, 2022-08-16)
2023-04-30 19:07:29 +05:30
Kaartic Sivaraam
0f0358f227 Bump minSdk to 29
A replication of the fix done in 9b9521a03 (Update min SDK to 29, 2022-08-22)
to temporarily address #5031.

We're replicating this rather than merging the 4.0-release branch since
merging results in multiple merge conflicts that are non-trivial to
resolve.

We need to find a proper fix for the play store issue, though.
2023-04-30 19:07:00 +05:30
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