From 40e4782b32e03e1281416a97ea2860f8cd03ce62 Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Sun, 6 Aug 2023 10:38:47 +0200 Subject: [PATCH] Minor fix to ViewUserDetailActivity --- .../infinityforlemmy/activities/ViewUserDetailActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java b/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java index 57b6cf93..f4dd3015 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/activities/ViewUserDetailActivity.java @@ -141,6 +141,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele private static final String FETCH_USER_INFO_STATE = "FSIS"; private static final String MESSAGE_FULLNAME_STATE = "MFS"; private static final String NEW_ACCOUNT_NAME_STATE = "NANS"; + private static final String NEW_ACCOUNT_QUALIFIED_NAME_STATE = "NAQNS"; @BindView(R.id.coordinator_layout_view_user_detail_activity) CoordinatorLayout coordinatorLayout; @@ -236,6 +237,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele private int mMessageId; private String mNewAccountName; + private UserData mUserData; //private MaterialAlertDialogBuilder nsfwWarningBuilder; @@ -288,6 +290,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele mFetchUserInfoSuccess = savedInstanceState.getBoolean(FETCH_USER_INFO_STATE); mMessageId = savedInstanceState.getInt(MESSAGE_FULLNAME_STATE); mNewAccountName = savedInstanceState.getString(NEW_ACCOUNT_NAME_STATE); + qualifiedName = savedInstanceState.getString(NEW_ACCOUNT_QUALIFIED_NAME_STATE); } checkNewAccountAndInitializeViewPager(); @@ -1271,6 +1274,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele outState.putBoolean(FETCH_USER_INFO_STATE, mFetchUserInfoSuccess); outState.putInt(MESSAGE_FULLNAME_STATE, mMessageId); outState.putString(NEW_ACCOUNT_NAME_STATE, mNewAccountName); + outState.getString(NEW_ACCOUNT_QUALIFIED_NAME_STATE, mAccountQualifiedName); } @Override