mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Peer Review Fix (#5435)
* Peer Review Fix * Peer Review Fix #2 --------- Co-authored-by: shashankkumar <shashankkumar45556@gmail.com>
This commit is contained in:
parent
a16d9f7473
commit
54c7187bba
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue