mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fix: user reset for Thanks screen (#5183)
Removed previous if statement. If the app is rotated, the Thanks message will disappear, but the username gets a reset for each new image reviewed.
This commit is contained in:
parent
4e50e6c76e
commit
d1af26c8a8
1 changed files with 2 additions and 7 deletions
|
|
@ -127,13 +127,8 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment {
|
|||
enableButtons();
|
||||
question = getString(R.string.review_thanks);
|
||||
|
||||
// Get existing user name if it is already saved using savedInstanceState else get from reviewController
|
||||
if (savedInstanceState == null) {
|
||||
if (getReviewActivity().reviewController.firstRevision != null) {
|
||||
user = getReviewActivity().reviewController.firstRevision.getUser();
|
||||
}
|
||||
} else {
|
||||
user = savedInstanceState.getString(SAVED_USER);
|
||||
if (getReviewActivity().reviewController.firstRevision != null) {
|
||||
user = getReviewActivity().reviewController.firstRevision.getUser();
|
||||
}
|
||||
|
||||
//if the user is null because of whatsoever reason, review will not be sent anyways
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue