5

While I was searching for some Android stuff I saw this answer on a specific Android question, which needed some code changes. Specifically, I suggested this edit.

While I was trying to figure out the reasons why my edit was rejected, I went back to see the answer where I saw this edit (an almost same edit as mine, which was actually accepted by the author of the answer):

Could someone explain me the reasons why this has happened? Have I done something wrong?

3
  • 4
    The rejected edit tells you exactly what happened. The reviewer rejected your edit and applied their own adaptation of it instead. The post author neither rejected your answer nor applied any other edits.
    – Servy
    Commented Jun 20, 2018 at 18:33
  • @Servy thank you for your quick response. Could you provide some reasons why the reviewer would reject my edit while their edit was almost the same? I recently started to be an active member and trying to help the community, sorry if I'm asking so much questions. Commented Jun 20, 2018 at 18:52
  • @JohnB Your edit resulted in invalid xml due to the missing namespace declaration and the next editor fixed it. Whether he should have accepted and improved your edit or declined it in this case could be discussed - but I think both ways are possible,
    – piet.t
    Commented Jun 21, 2018 at 6:30

1 Answer 1

3

The post has been reviewed and then rejected by someone who then went on to submit their own edit. The top xmlns:app="http://schemas.android.com/apk/res-auto" was edited in theirs, where as yours doesn't contain that.

Just to highlight on a point of yours.

Have I done something wrong?

Don't feel disheartened by an edit rejection. You're still trying to contribute to the greater good which is important. It's just at this time someone within the review queue adapted your answer. Even people like Mr Skeet will have some rejections along the way.

1
  • 2
    Thank you very much for your answer. I am not disheartened, just can't see what went wrong. Commented Jun 20, 2018 at 18:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .