mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
ReviewImageFragment: fix disappearing author name on changing orientation (#5209)
This commit is contained in:
parent
013809f46a
commit
68ddcf0bc6
1 changed files with 4 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment {
|
|||
|
||||
if (getReviewActivity().reviewController.firstRevision != null) {
|
||||
user = getReviewActivity().reviewController.firstRevision.getUser();
|
||||
} else {
|
||||
if(savedInstanceState != null) {
|
||||
user = savedInstanceState.getString(SAVED_USER);
|
||||
}
|
||||
}
|
||||
|
||||
//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