Fix switching account issue in ViewPostDetailActivity and InboxActivity when a user clicks the notification that belongs to another account.

This commit is contained in:
Docile-Alligator
2024-08-11 11:39:24 -04:00
parent 9ba4016c2e
commit 476e84fdca
2 changed files with 5 additions and 0 deletions

View File

@ -223,6 +223,7 @@ public class InboxActivity extends BaseActivity implements ActivityToolbarInterf
mNewAccountName = null;
if (newAccount != null) {
accessToken = newAccount.getAccessToken();
accountName = newAccount.getAccountName();
}
bindView(savedInstanceState);

View File

@ -345,6 +345,10 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
Toast.makeText(this, R.string.account_switched, Toast.LENGTH_SHORT).show();
mNewAccountName = null;
if (newAccount != null) {
accessToken = newAccount.getAccessToken();
accountName = newAccount.getAccountName();
}
bindView(savedInstanceState);
});