Skip to content

Commit 52724b8

Browse files
zhao-gangnicolas-raoul
authored andcommitted
Add setting Picture_Has_Correct_Location prefs(Fixed commons-app#2530) (commons-app#2536)
Update Picture_Has_Correct_Location prefs in method handleImage. This fixed an issue that this prefs is not set and related wikidata can't be updated.
1 parent 9d03274 commit 52724b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/fr/free/nrw/commons/upload/UploadPresenter.java

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ private void handleImage(Title title, List<Description> descriptions, Integer im
129129
if (imageResult == IMAGE_KEEP || imageResult == IMAGE_OK) {
130130
Timber.d("Set title and desc; Show next uploaded item");
131131
setTitleAndDescription(title, descriptions);
132+
directKvStore.putBoolean("Picture_Has_Correct_Location", true);
132133
nextUploadedItem();
133134
} else {
134135
handleBadImage(imageResult);

0 commit comments

Comments
 (0)