fixed: When the coordinates have been copied from another picture, explain it in description #4700 (#5166)

Very useful contribution, thanks Arman!
This commit is contained in:
Arman Navodia 2023-03-10 08:07:18 +05:30 committed by GitHub
parent caab97b341
commit b048e099c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -246,6 +246,13 @@ public class UploadMediaDetailFragment extends UploadBaseFragment implements
public void onPositiveResponse() {
Timber.d("positive response from similar image fragment");
presenter.useSimilarPictureCoordinates(similarImageCoordinates, callback.getIndexInViewFlipper(UploadMediaDetailFragment.this));
// set the description text when user selects to use coordinate from the other image
// which was taken within 20s
// fixing: https://github.com/commons-app/apps-android-commons/issues/4700
uploadMediaDetailAdapter.getItems().get(0).setDescriptionText(
getString(R.string.similar_coordinate_description_auto_set));
updateMediaDetails(uploadMediaDetailAdapter.getItems());
}
@Override