Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions app/src/main/java/fr/free/nrw/commons/upload/UploadActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,15 @@ class UploadActivity : BaseActivity(), UploadContract.View, UploadBaseFragment.C
Manage EXIF Tags setting or turned "Record location for in-app shots" off.
Also, location information is discarded if the difference between
current location and location recorded just before capturing the image
is greater than 100 meters */
if (isLocationTagUnchecked || locationDifference > 100
is greater than 100 meters
NOTE:- The LOCATION_BEFORE_IMAGE_CAPTURE is only available
for in-app camera uploads. For gallery uploads, this location is not
passed via the intent from Nearby to UploadActivity. Therefore,
the location difference check should only apply to camera uploads.
*/
if (isLocationTagUnchecked
|| !defaultKvStore.getBoolean("inAppCameraLocationPref")
|| !isInAppCameraUpload
|| (isInAppCameraUpload && locationDifference > 100)
) {
currLocation = null
}
Expand Down
Loading