ReviewImageFragment: fix disappearing author name on changing orientation (#5209)

This commit is contained in:
Ritika Pahwa 2023-04-16 23:21:11 +05:30 committed by GitHub
parent 013809f46a
commit 68ddcf0bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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