Peer Review Fix (#5435)

* Peer Review Fix

* Peer Review Fix #2

---------

Co-authored-by: shashankkumar <shashankkumar45556@gmail.com>
This commit is contained in:
shashankiitbhu 2024-01-15 18:10:33 +05:30 committed by GitHub
parent a16d9f7473
commit 54c7187bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -27,6 +27,7 @@ import com.facebook.drawee.view.SimpleDraweeView;
import com.viewpagerindicator.CirclePageIndicator;
import fr.free.nrw.commons.Media;
import fr.free.nrw.commons.R;
import fr.free.nrw.commons.auth.AccountUtil;
import fr.free.nrw.commons.delete.DeleteHelper;
import fr.free.nrw.commons.media.MediaDetailFragment;
import fr.free.nrw.commons.theme.BaseActivity;
@ -217,6 +218,12 @@ public class ReviewActivity extends BaseActivity {
return;
}
//If The Media User and Current Session Username is same then Skip the Image
if (media.getUser() != null && media.getUser().equals(AccountUtil.getUserName(getApplicationContext()))) {
runRandomizer();
return;
}
simpleDraweeView.setImageURI(media.getImageUrl());
reviewController.onImageRefreshed(media); //file name is updated

View file

@ -21,6 +21,7 @@ import fr.free.nrw.commons.R;
import fr.free.nrw.commons.di.CommonsDaggerSupportFragment;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class ReviewImageFragment extends CommonsDaggerSupportFragment {
@ -91,6 +92,7 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment {
ButterKnife.bind(this, layoutView);
String question, explanation=null, yesButtonText, noButtonText;
switch (position) {
case SPAM:
question = getString(R.string.review_spam);